NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Expression for Enum as string

Solved!
Go to solution

I created a custom step type with a vi. I could not display the enum name as a string using the step description experession.

What is the expression to display an enum parameter name instead of its number?Custom step props.jpg

 

step params.jpg

 

0 Kudos
Message 1 of 3
(3,786 Views)
Solution
Accepted by topic author GoKu25

Hey,

 

The ArgDisplayVal parameter should return the string. It holds the displayed value in the argument.

 

Step.TS.SData.ViCall.Parms["EnumName"].ArgDisplayVal

 

Nico

--------
Nico
Systems Engineer

Certified TestStand Architect Certified LabVIEW Architect

0 Kudos
Message 2 of 3
(3,758 Views)

Hi,

 

I would lik eto do exactly the same, but I don't have the same hierarchy... Has it changed in earlier version?

Loïs_0-1576849261868.png

Thank you,

0 Kudos
Message 3 of 3
(3,283 Views)