The MATLAB® language syntax and the Xmath syntax are loosely-typed script languages and do not determine the data type of a variable until after the script runs. Therefore, LabVIEW cannot determine the type of a variable 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 run time, or both. |
Complete the following steps to change the data type of an input or output terminal on a MATLAB script node or an Xmath Script Node.
LabVIEW recognizes many of the data types available in MathScript, the MATLAB software, and the Xmath software, although the data types might be named differently.
Because the MathScript Node behaves differently than the other script nodes, you do not need to change the data type of input terminals. Instead, if you wire an unsupported data type to an input terminal on a MathScript Node, LabVIEW either converts the data type to a supported type or shows a broken wire. If LabVIEW converts the data type, a coercion dot appears on the terminal where the conversion takes place. After you wire an input to a MathScript Node, right-click the terminal of the input and select Show Data Type from the shortcut menu to see the data type of the input.