Create/Update Custom Data Type from LabVIEW Enum Dialog Box

Click Create/Update Custom Data Type located next to the parameter in the Type column on the LabVIEW Module tab / LabVIEW NXG Module tab or in the Edit LabVIEW VI Call / Edit LabVIEW NXG VI Call dialog boxes to launch the Create/Update Custom Data Type from Enum dialog box.

When you are creating a new custom enumeration data type for a LabVIEW/LabVIEW NXG enumerated parameter, the Create tab of the Create/Update Custom Data Type from Cluster dialog box contains the following options:

  • Type Name —The name of the new custom data type.
  • List Box —Includes the following information:
    • Items —Lists the names of the elements in the LabVIEW/LabVIEW NXG enumerated parameter.
    • Values —Lists the numeric value of each item.
  • Create Custom Data Type in File —The file in which TestStand creates the new data type. By default, TestStand creates the new data type in the current sequence file.

When you are updating an existing custom enumeration data type, switch to the Update tab of the dialog box. It contains the following options:

  • Select Type —The names of the existing custom enumeration data types. Select a type to update.
  • List Box —Includes the following information:
    • Items —Lists the names of the elements in the LabVIEW/LabVIEW NXG enumerated parameter, as well as the elements in the TestStand enumeration data type. The items that are to be retained in the updated enumeration data type are displayed in black. Those items that are present in the TestStand type but absent in the LabVIEW/LabVIEW NXG enum will be removed, and are displayed in red and struck out.
    • New Values —Lists the new numeric value of each item that will be present in the updated type.
    • Old Values —Lists the old numeric value of every item which will be retained or removed.
The input and output values to a LabVIEW/LabVIEW NXG Enum parameter should always match one of its enumeration elements. However, a LabVIEW Ring parameter can accept and output a numeric value that does not match any enumeration element. Hence, the TestStand Enum data type created by this dialog creates a Strict Enum data type for LabVIEW/LabVIEW NXG Enum controls and a Non-Strict Enum data type for LabVIEW Ring controls.
Note LabVIEW NXG Ring parameters are not recognized as enumeration parameters in TestStand.
You can change this setting for the TestStand Enum data type by clicking on the Edit Enumerators button for the type in the Types pane and modifying the setting in the Edit Enumerators dialog box.
Note
  • This dialog box is available only for enumerated LabVIEW/LabVIEW NXG parameters like enums, rings, tab controls, etc. and arrays of such enumerated parameters.
  • When you update a strict type definition in LabVIEW/LabVIEW NXG, you must also update all instances of the custom data type you created in TestStand from that LabVIEW/Labview NXG strict type definition. TestStand does not automatically update custom data types with changes you make in LabVIEW/LabVIEW NXG.