Variant VIs and Functions

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: Cluster, Class, & Variant VIs and Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Variant VIs and functions to add, retrieve, and delete attributes in LabVIEW variants, manipulate variants, and retrieve data types of variants.

Palette ObjectDescription
Delete Variant AttributeDeletes an attribute(s) and value(s) in variant data.
Flattened String To VariantConverts flattened data into variant data.
Get Variant AttributeRetrieves the names and values of all attributes or the value of a single attribute, depending on whether you wire the name parameter.
Set Variant AttributeAllows you to change or create an attribute and value for variant data.
To VariantConverts any LabVIEW data to variant data. You also can use this function to convert ActiveX data to variant data.
Variant ConstantUse the variant constant to pass an empty variant to the block diagram. You cannot set a value for the variant constant.
Variant To DataConverts variant data to a LabVIEW data type so LabVIEW can display or process the data. You also can use this function to convert variant data to ActiveX data.
Variant To Flattened StringConverts variant data into a flattened string and an array of integers that represent the data type. You cannot flatten ActiveX variant data.

Data Type Parsing VIsUse the Data Type Parsing VIs to retrieve and compare the data type stored in a variant to other data types.


Not Helpful