Constant class
VI Server Class Information | |
---|---|
Return to VI Server Class Hierarchy | |
Class Name | class |
Class ID | {{{1}}} |
Scope | |
Class Inheritance |
This class is a top-level class. |
Class Children | This class has no children. |
![]() |
This article is a stub. You can help LabVIEW Wiki by expanding it. Please improve this article if you can. |
The Constant class is a class in the VI Server Class Hierarchy, (see also VI Server).
Properties
Show/Hide Constant Properties Table
Legend | |
---|---|
R/W | Readable/Writable Permissions |
RTE | Available in the Run-Time Engine |
Basic Development Environment | |
VI Scripting | |
Private | |
Deprecated |
Property ID | Short Name (English) | Description | R/W | RTE |
---|---|---|---|---|
634AC07 | Auto-Update | If TRUE, the constant automatically updates when the type definition changes. | R/W | |
634AC01 | Desc | Provides a description of the constant. | R/W | |
634AC05 | Typedef? | Returns whether the constant is linked to the type definition. | R | |
634AC02 | Label | Returns a reference to the label. | R | |
634AC04 | Terminal | Returns a reference to the terminal. | R | |
634AC03 | TipStrip | Gets or sets the tip strip of a constant. A tip strip is the brief description of the object that appears when you move the cursor over the object.
Other products refer to tip strips as tooltips. |
R/W | |
634AC06 | TypedefPath | Returns the path to the type definition if the constant is linked to a type definition. Otherwise, LabVIEW returns an empty path. | R | |
634AC08 | TypedefVI | Returns a reference to the type definition if the constant is connected to a type definition. Otherwise, LabVIEW returns . | R | |
634AC00 | Value | Provides the value of the constant, which is an LV Variant. | R/W |
Methods
Show/Hide Constant Methods Table
Legend | |
---|---|
RTE | Available in the Run-Time Engine |
Basic Development Environment | |
VI Scripting | |
Private | |
Deprecated |
Method ID | Short Name (English) | Description | RTE |
---|---|---|---|
634A802 | Change to Control | Changes the constant to a control and returns a reference to the control. LabVIEW automatically closes the reference to the constant. | |
634A803 | Change to Indicator | Changes the constant to an indicator and returns a reference to the indicator. LabVIEW automatically closes the reference to the constant. | |
634A807 | Change to Shared Variable Node | Changes the constant to a Shared Variable node and returns a reference to the Shared Variable node. If you do not specify a shared variable to bind to the node, LabVIEW creates a new shared variable. LabVIEW automatically closes the reference to the constant. | |
634A804 | Copy Data | Copies the data associated with the constant and saves it to the clipboard. | |
634A800 | Discon Typedef | Disconnects the constant from the type definition and returns TRUE. If the constant is not connected to a type definition, LabVIEW returns FALSE. | |
634A806 | Paste Data | Places the data from the clipboard into the constant. | |
634A801 | Update Typedef | Updates the constant from the type definition and returns TRUE. If the constant is not connected to a type definition, LabVIEW returns FALSE.
In most cases, LabVIEW correctly preserves the default values of each instance when updating from the type definition. However, if LabVIEW is unable to map the previous default values to the updated controls or constants when updating instances, LabVIEW may lose or incorrectly preserve the default values of instances LabVIEW updates programmatically. Avoid updating type definition instances programmatically if the instances have custom default values and you plan to make extensive changes to the type definition. |
Events
No Events for this class.
History
![]() |
History information is needed. What changes have occured over previous versions? |
Version | Change(s) |
---|---|
![]() |
More info to come. |