Configuring the Data Type of HiQ or MATLAB Script Terminals

Both HiQ and MATLAB are loosely typed script languages and do not determine the data type of a variable until after the script executes. Therefore LabVIEW cannot determine a variable type in Edit mode. LabVIEW queries the script server to find out possible data types. You can select the LabVIEW data type for each terminal.

Note  If you do not correctly configure a variable data type, LabVIEW might produce an error, return incorrect information at runtime, or both.

Complete the following steps to change the data type of an input or output terminal on a script node.

  1. Right-click the terminal of the input or output and select Choose Type from the shortcut menu. A list of the available data types appears, depending on whether you use HiQ or MATLAB.
  2. Select the data type you want to use.

LabVIEW recognizes all the data types that HiQ and MATLAB can use, although they might be named differently.