Selecting an Enum Parameter in TestStand 2016 or later

Updated Apr 26, 2023

Reported In

Software

  • TestStand 2016
  • TestStand 2017
  • TestStand 2017 SP1
  • TestStand 2019

Issue Details

I am using an enum custom data type in TestStand 2016 or later. The enum is in a subsequence that is called by the main sequence. In the main sequence, how do I select the Value of the enum input?

Solution

Use the syntax Enums.<TYPE>.<ENUMERATOR> to specify the Value of the enumeration constant. In the above example, Enums.Color.Red specifies the Red value from the Color type.

Additional Information

Using enums in TestStand without LabVIEW was a feature added in TestStand 2016. If you are using a previous versions of TestStand, you must create an enum in LabVIEW and call it in TestStand.

Further details can be found in Enumerations in TestStand Expressions - TestStand Help, to create programmatically a enum variable using the TestStand API refer to How Can I Create Programmatically an Enumeration Variable in TestStand?