Jump to content

Constant class

From LabVIEW Wiki
Revision as of 01:43, 28 August 2019 by Q (talk | contribs) (Started page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.


    The Constant class is a class in the VI Server Class Hierarchy, (see also VI Server).

    Properties

    Show/Hide Constant Properties Table

    Legend
    R/WReadable/Writable Permissions
    RTEAvailable in the Run-Time Engine
    Basic Development Environment
    VI Scripting
    Private
    Deprecated
    Constant Properties Table
    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
    RTEAvailable in the Run-Time Engine
    Basic Development Environment
    VI Scripting
    Private
    Deprecated
    Constant Methods Table
    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

    Version Change(s)
    LabVIEW 2018 More info to come.

    See Also