Table Of Contents

Get Variant Attribute (G Dataflow)

Version:
    Last Modified: January 9, 2017

    Returns either the value of a single variant attribute or the names and values of all variant attributes. To retrieve the names and values of all variant attributes, select Get All Attributes in the Behavior section of the Item tab.

    connector_pane_image
    datatype_icon

    variant

    The variant data for which you want to retrieve one or all attributes.

    datatype_icon

    name

    The name of the attribute whose value you want to retrieve.

    spd-note-note
    Note  

    This input is not available if you click Get Variant Attribute and select Get All Attributes in the Behavior section of the Item tab.

    datatype_icon

    default value

    A value and data type that you specify. If the node does not find the attribute specified in name, it returns the default value.

    spd-note-note
    Note  

    This input is not available if you click Get Variant Attribute and select Get All Attributes in the Behavior section of the Item tab.

    datatype_icon

    error in

    Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

    Default: No error

    datatype_icon

    duplicate variant

    variant unchanged.

    datatype_icon

    found?

    A Boolean value that indicates whether the node found the attribute that is specified in name.

    True The node found the attribute specified in name.
    False The node did not find the attribute specified in name.
    spd-note-note
    Note  

    This output is replaced by a 1D array output containing the names of all the variant attributes if you click Get Variant Attribute and select Get All Attributes in the Behavior section of the Item tab.

    datatype_icon

    names

    A 1D array containing the names of all attributes associated with the variant. LabVIEW sorts this array and arranges the array elements in ascending order using the same algorithm as Sort 1D Array.

    spd-note-note
    Note  

    This input is only available if you click Get Variant Attribute and select Get All Attributes in the Behavior section of the Item tab.

    datatype_icon

    value

    The value associated with the attribute you wire to name in variant format.

    spd-note-note
    Note  

    This output is replaced by a 1D array output containing the values of all the variant attributes if you click Get Variant Attribute and select Get All Attributes in the Behavior section of the Item tab.

    datatype_icon

    values

    A 1D array containing the values associated with each attribute of the specified variant in variant format. The values in this array appear in the same order as their corresponding names appear in the names output. You must unflatten each attribute value to an appropriate data type.

    spd-note-note
    Note  

    This input is only available if you click Get Variant Attribute and select Get All Attributes in the Behavior section of the Item tab.

    datatype_icon

    error out

    Error information. The node produces this output according to standard error behavior.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics