|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
|LabVIEW 2020 Help|
Short Name: Ctrl Val.Get
Requires: Base Development System
Class: VI Methods
To Use: Create a method.
Gets the value of a named control or indicator as variant data. Use the Variant to Data function to convert the data to another LabVIEW data type.
|Note This method requires the VI to have a front panel. If you are using the Application Builder, make sure you do not remove the front panel.|
For optimization purposes, LabVIEW does not keep track of data values on controls and indicators until LabVIEW determines you want them, that is, until you call this method or display the front panel. When you display the front panel, LabVIEW begins keeping track of the values.
The first time you call this method on a VI whose front panel is not open, this method returns the default values of the control or indicator rather than the actual values. Thereafter, it returns the actual value.
|Control Name||Yes||Label of the control or indicator whose value you want. LabVIEW searches the front panel tabbing order for the label of the object and returns the value for the first object whose label matches the string you wire to this input.|
The following table lists the characteristics of this method.
|Available in Run-Time Engine||Yes (Read/Write)|
|Available in Real-Time Operating System||Yes|
|Settable when the VI is running||Yes|
|Loads the front panel into memory||No|
|Need to authenticate before use||No|
|Loads the block diagram into memory||No|
|Remote access allowed||Yes|
|Must wait until user interface is idle||No|
|Available with control VIs||Yes|
|Available with global VIs||Yes|
|Available with strict type definitions||No|
|Available with polymorphic VIs||No|