Adding Attributes to Variant Data

Complete the following steps to add attributes to variant data.

  1. Convert the data to variant data.
  2. Select the Set Variant Attribute function on the Functions»Advanced»Data Manipulation»Variant palette and place it on the block diagram.
  3. Wire the variant data output of To Variant Data function to the variant input of the Set Variant Attribute function.
  4. Specify a name and a value for the data on the Set Variant Attribute function.
  5. Wire the variant data output on the Set Variant Attribute function to any VI or function that accepts variant data as an input.
  6. Run the VI.