Chapter 2 New Features in LabVIEW 5.1
LabVIEW 5.1 Addendum 2-20
©
National Instruments Corporation
Scrolling through a HiQ or MATLAB ScriptJust 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 th e right side of your script node.
Configuring the Datatype of a TerminalBoth 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.
Table2-1 shows LabVIEW datatypes and their corresponding datatypes in
HiQ and MATLAB.