Complete the following steps to add attributes to variant data.
- Convert the data to variant data, as shown in the following block diagram.
- Place the Set Variant Attribute function on the block diagram.
- Wire the variant output of the To Variant function 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 should appear as follows.