Enumeration Parameter Value Update Behavior
- Updated2025-07-23
- 2 minute(s) read
Enumeration Parameter Value Update Behavior
If you change the number of items in an enumeration in LabVIEW, you must reload the VI prototype for a VI that uses the enumerated values as parameters in TestStand before you can execute the sequence.
When you reload a VI prototype and you specify an expression for the enumeration parameter, TestStand always retains the expression.
When you reload a VI prototype and you do not specify an expression for the enumeration parameter, TestStand updates enumeration parameter values in the following ways depending on the version of LabVIEW you are using:
- (LabVIEW 2011 SP1 or earlier) TestStand retains the numeric value and updates the corresponding string label to match the numeric value. If you delete the numeric value, TestStand updates the string label to use the last enumeration value in the list.
- (LabVIEW 2012 or later) TestStand updates enumeration parameter values in a way similar to how LabVIEW updates enumeration controls. TestStand updates enumeration parameter values differently depending on whether the enumeration is an instance of a LabVIEW type definition, as the following tables describe.
When the Enumeration Is an Instance of a LabVIEW Type Definition
The following table describes how TestStand updates enumeration parameter values when you reload the VI prototype, you do not specify an expression for the enumeration parameter, and the enumeration is an instance of a LabVIEW type definition.
| Change You Make to LabVIEW Type Definition | Effect You See in TestStand VI Parameter Table | Effect You See in TestStand Step Properties |
|---|---|---|
| You modify or delete the string label, and the numeric value currently stored in the step property matches another string label. | TestStand retains the numeric value and updates the corresponding string label to match the numeric value. | TestStand retains the numeric value and updates the corresponding string label. |
| You move the string label to a different position in the list of enumeration values. | TestStand retains the string label. | TestStand retains the string label and updates the corresponding numeric value. |
| You delete the string label and the numeric value. | TestStand updates the string label to use the last enumeration value in the list. | TestStand updates the numeric value and updates the string label to use the last enumeration value in the list. |
When the Enumeration Is Not an Instance of a LabVIEW Type Definition
The following table describes how TestStand updates enumeration parameter values when you reload the VI prototype, you do not specify an expression for the enumeration parameter, and the enumeration is not an instance of a LabVIEW type definition.
| Change You Make in VI | Effect You See in TestStand VI Parameter Table | Effect You See in TestStand Step Properties |
|---|---|---|
| You delete the numeric value currently stored in the step property. | TestStand updates the string label to use the last enumeration value in the list. | TestStand updates the numeric value and updates the string label to use the last enumeration value in the list. |
| You update the string label but retain the numeric value currently stored in the step property. | TestStand updates the string label. | TestStand retains the numeric value and updates the corresponding string label. |