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 attributes, select Get All Attributes in the Behavior section of the Item tab.
The variant data for which you want to retrieve one or all attributes.
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
variant unchanged.
A 1D array containing the names of all attributes associated with the variant. This node sorts this array and arranges the array elements in ascending order using the same algorithm as Sort 1D Array.
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 convert each attribute value to an appropriate data type.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
This node has two modes of behavior depending on whether you select Get All Attributes in the Behavior section of the Item tab.
Get All Attributes | Node Behavior |
---|---|
Selected | The node returns the names of all attributes and their corresponding values in 1D arrays. |
Not selected | The node searches for only the specified attribute. The names output changes to a Boolean output called found and the values output changes to a variant output called value. If the node does not find the specified attribute(s), or if it cannot convert the attribute(s) to the default value, found is False, and value displays the contents of default value. |
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application