Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Configuring the Data Type of Script Node Terminals

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

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.

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

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.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit