Dieser Inhalt liegt nicht in Ihrer bevorzugten Sprache vor.

Der Inhalt wird Ihnen in einer anderen verfügbaren Sprache angezeigt. Ihr Browser bietet ggf. Funktionen, die Sie bei der Übersetzung des Textes unterstützen.

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?