Passing Existing TestStand Container Variables to LabVIEW

Instead of passing each element of a cluster parameter individually, you can create a TestStand custom data type that maps to an entire LabVIEW cluster.

  1. Click the Create/Update Custom Data Type button, located in the Type column of the VI Parameter Table on the LabVIEW Module tab, to launch the Create/Update Custom Data Type from Cluster dialog box.
  2. create a TestStand custom data type, such as a container, that matches an existing LabVIEW cluster.
  3. Use the LabVIEW Cluster Passing tab on the Type Properties dialog box for the new custom data type to specify how TestStand maps subproperties to elements in a LabVIEW cluster.

This example illustrates how to create an InputData custom data type to map cluster data to TestStand, and create a ContainerData local variable that is an instance of the InputData custom data type.

The following figure shows the Create/Update Custom Data Type from Cluster dialog box for the InputData data type:

The following figure shows the custom InputData data type on the Types window:

The following figure shows a VI Parameter Table in which the Input Cluster parameter data passes to the ContainerData local variable:

When you specify the data to pass for a cluster parameter, use a variable that is an instance of the new custom data type.
Note When you update a strict type definition in LabVIEW, you must also update all instances of the custom data type you created in TestStand from that LabVIEW strict type definition. TestStand does not automatically update custom data types with changes you make in LabVIEW.