Adding Attributes to Variant Data
- Updated2026-03-31
- 1 minute(s) read
Add attributes to variant data in LabVIEW by using the Set Variant Attribute function with a name-value pair.
Complete the following steps to add attributes to variant data.
- Add the Set Variant Attribute function to the block diagram.
- Wire the variant data to the variant input of the Set Variant Attribute function.
- Wire the name and value inputs of the Set Variant Attribute function.
- Wire the variant out output of the Set Variant Attribute function to any VI or function that accepts variant data as an input.
- Run the VI. The block diagram appears similar to the following block diagram.