03-26-2009 09:32 AM
I have an enum as a control on a VI that I am using in TestStand. I like using the enum as a control because TestStand then shows the dropdown list of the enum to select the input to the VI. What I need inside the VI is the numeric value of the input selected. I have been all over the properties for the enum and cannot seem to find a property that basically gives you the value of the digital display of the enum. Thanks in advance for any help.
Troy
03-26-2009 09:35 AM - edited 03-26-2009 09:36 AM
The enum already is a numeric! You can wire the enum directly to math functions if you want to, or you can explicitely convert it to numeric representation (for instance to I32).
03-26-2009 09:38 AM
Format into string will retun the string associated with the current value of the enum.
If those string are numerics in your case then the returned string from format into stirng will then have to be converted to a number.
Are we getting close?
Ben
03-26-2009 09:42 AM
Ok, I was digging too deap into this one. I guess I am looking too forward to the weekend. Thanks for the help.
Troy
03-26-2009 09:47 AM
03-26-2009 10:03 AM
Thank you Danny!
Ben
03-26-2009 01:13 PM - edited 03-26-2009 01:13 PM
Of course, this bit:
should really be done this way:
03-30-2009 02:00 AM
Live and learn, it seems obvious when you see it
thanks for that