NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ENUM 'digital display' showing up instead of 'item' when specifying module

When there is an ENUM with strings in the list of 'items' the strings get selected and displayed when specifying a module. This makes sense.

If the ENUM 'items' are numeric they can be selected from the pull-down list (when specifying the module), but when you press the 'ok' button and then try to specify the module again it reverts to the 'digital display' integer reference index. If you do not have a 1:1 correspondence between 'item' and 'digital display' (e.g. 0 to 0, 1 to 1, 2 to 2, etc.) it appears to be very odd behavior, like it isn't taking what you selected. Actually it is, but if you don't know what the 'digital display' numbers refer to you can't tell if it is right.

Is there a way to get it to stop doing this? Just display the item that was selected, not the 'digital display' reference?

John
0 Kudos
Message 1 of 4
(3,093 Views)
Hey John,

I assume when you say you are using enums, you are doing this with LabVIEW enums?  If so I tried to create an enum with TestStand 3.5 and LabVIEW 8.0, and I did not see the behavior you were talking about.  If I understood you correctly, instead of keeping the text in the specify module window, it is replacing it with the index number.  What versions of TestStand and LabVIEW are you using because it could be possible that it was a bug that has been fixed in newer versions of TestStand.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,068 Views)
Pat, thanks for the response. I know it is kind of confusing, but check out the attached vi and sequencer. It is two enums with slightly different lists of items, 'Okay Enum' starts with zero for the first entry.

The steps to take are:

1) Specify the module, selecting item '3' for 'Funky Enum'. Press ok.
2) Specify the module, you can see 'Funky Enum' went from '3' to '2'. Press ok without changing anything.
3) Specify the module, you can see 'Funky Enum' went from '2' to 1'.  Press ok without changing anything.
4) Specify the module, and it stays at '1'.

Selecting one of the strings doesn't cause this behavior, it stays selected. Only the numeric entries do it. Try changing the first item of 'Funky Enum' to zero, then it will work as it should. Then try changing it to a string, it will also work correctly. Actually, try chaning the entries to 3-2-1 instead of 1-2-3, gets even stranger when you select '3'. Then try 10-11-12, that works okay.

These enums came from the Classic Ring & Enum controls, and I'm using TS 3.5/LV 8.0.

Are you able to see it do this?
Download All
0 Kudos
Message 3 of 4
(3,065 Views)

Hey John,

I am able to see this happening.  I think any time one of the items in the Enum corresponds to a digital display item in the Enum this problem will occur.  I have filed a Corrective Action Request for R&D to take a look at it.  Unfortunately the only workaround I can suggest is to use text representations of the numbers.  For example, instead of using 1, 2, or 3, you could use one, two, or three.  I understand this could become difficult if you are using very large numbers.  I'll post again here if any better workarounds are found.  Thanks for your post John!


Message Edited by Patrick P. on 04-14-2006 08:57 AM

Pat P.
Software Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,049 Views)