Passing Existing TestStand Container Variables to LabVIEW
- Updated2024-11-26
- 2 minute(s) read
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.
-
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.
- create a TestStand custom data type, such as a container, that matches an existing LabVIEW cluster.
- 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: