LabVIEW

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 a string in 'item' that string gets selected and displayed when specifying a module. This makes sense. But if the ENUM 'items' are numeric, you can select one of the ENUM items 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 the value 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
(2,712 Views)
I don't understand what you mean when you say "when specifying a module". What module? Is this in your code? You also say "when you press the 'ok' button". What 'ok' button? Again, is this an 'ok' button on your front panel? The digital display of an enum displays the underlying value of the enum. These values are always sequential, starting at 0. You can't change this. The label displayed in the enum control itself is something you specify and it can be anything. It does not need to be related in any way to the value displayed in the digital display. It's just text. There is little reason to have the digital display visible for an enum in the first place. Even less if this enum is on a front panel for a user (although in general it's better to use a menu ring instead of an enum on a front panel meant for a general user).
0 Kudos
Message 2 of 4
(2,703 Views)
Either I'm not understanding the problem, or I'm not seeing what you're seeing.

If I drop an enum and use numbers for the "Item Strings", the numbers I entered for the items are all that I see in the enum selection list.

It sounds like what you are saying is you are seeing the enum index being displayed in the selection list. Is this correct?

Also, what version of LabVIEW are you using.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 3 of 4
(2,702 Views)
Sorry for the confusion, this post was supposed to go into the TestStand discussion forum...
0 Kudos
Message 4 of 4
(2,692 Views)