National Instruments LabView Label Maker User Manual


 
Chapter 2 New Features in LabVIEW 5.1
LabVIEW 5.1 Addendum 2-20
©
National Instruments Corporation
Scrolling through a HiQ or MATLAB Script
Just as with a regular formula node, you can display a scrollbar within your
script node by right-clicking the node and selecting Show»Scrollbar.
A scrollbar appears on the right side of your script node.
Configuring the Datatype of a Terminal
Both HiQ and MATLAB are loosely typed script languages and do not
determine the datatype of a variable until after the script executes.
Therefore LabVIEW cannot determine a variable’s type in Edit mode.
However, LabVIEW does query the script server to find out possible
datatypes, and lets you choose which LabVIEW datatype each terminal
should be.
Note
If you do not correctly configure a variable’s datatype, LabVIEW will produce
either an error or incorrect information at runtime.
Complete the following steps to change the datatype of an input or output
terminal on a script node.
1. Right-click the terminal of the input or output. A pop-up menu
appears.
2. Select Choose Type. A list of the available datatypes appears,
depending on whether you use HiQ or MATLAB.
3. Choose the preferred datatype.
Note
LabVIEW recognizes all the datatypes that HiQ and MATLAB can use, although
they might be named differently.
Table 2-1 shows LabVIEW datatypes and their corresponding datatypes in
HiQ and MATLAB.