Importing or Exporting HiQ or MATLAB Scripts

If you already have a script written, you can import it from HiQ or MATLAB. You also can open a LabVIEW script in HiQ or MATLAB.

Complete the following steps to import a HiQ or MATLAB script into a script node in LabVIEW.

  1. Select Functions»Mathematics»Formula»HiQ-Script or Functions»Mathematics»Formula»MATLAB Script and drag out a region to place the HiQ or MATLAB script node on the block diagram.
  2. Right-click the HiQ or MATLAB script node and select Import from the shortcut menu to display the Choose a script dialog box.
  3. Select the file you want to import and click Open. The script text appears in the node.

Complete the following steps to save a HiQ or MATLAB script to a text file. You can later open this text file in LabVIEW, thus importing the HiQ or MATLAB script into LabVIEW.

  1. Right-click the HiQ or MATLAB script node.
  2. Select Export from the shortcut menu to display the Name the script dialog box.
  3. Enter the name you want to save your file as or select the file you want to overwrite.
  4. Click Save.

HiQ and MATLAB script files are text files. Although text files usually have a .txt extension, HiQ files have a .hqs extension, and MATLAB files have a .m extension.