01-26-2006 12:56 PM
01-26-2006 01:19 PM
Hi Jeff,
I'll probably need more information to help you with this problem. Usually it's the datatype that you have wired into the Case Structure that dictates what types of values (numeric, string, boolean, etc.) you see in the selector. If you had strings in the selector, and you added a case, I can think of no reason why *all* of your cases would all of a sudden display numbers. Could you perhaps attach a VI to your post that demonstrates the problem?
Good luck,
-D
01-26-2006 01:22 PM
01-27-2006 04:28 PM
I spent an hour with a very patient and helpful NI apps engineer. Here's what I learned.
The original vi designer used enumerated list constants inside the cases to navigate among the cases. The active enumerated list constant for the currently executing case is output to a shift register at the edge of the main while loop. That enumerated list value is then used as the case selector for the next execution of the case structure. All instances of the enumerated lists were identical, and the lists matched the case selector names.
I got into trouble by adding a new case. When I edited the first of the many enumerated list constants to include the new case name, I created a situation in which the enumerated list were no longer identical. Apparently that mismatch caused Labview to revert to numerical names for the cases. Once the new case name was added to all the enumerated lists, Labview would let me use the desired names for the case selector labels.
I guess this doesn't qualify as a bug, but I sure wish the online help contained enough information for me to solve this without an apps engineer.
01-27-2006 04:54 PM
01-27-2006 05:28 PM
tbob: that works if you convert the control to a TypeDef with auto update from TypeDef turned on in all of the places that it is used. I have never been able to get that to work with just a control. You have to manually reload the control in each place that it is used (when you make a change like add a state).
So, open the control and then use the drop down menu at the top and select TypeDef. Save it and then change all locations that use the original to the TypeDef. Adding a case is then as easy as opening the TypeDef and adding to the list. - well okay - you still have to add the case to the case structure.
Rob
01-27-2006 05:46 PM
11-23-2009 05:49 PM
11-23-2009 06:13 PM
acgraham wrote:
this thread describes the problem im having, but i couldn't find customize control in the edit menu. has it been moved or is there now another way to do this?
Are you looking at the control from the front panel for Customize Control on the right click menu?
03-06-2020 08:25 AM
Thanks!