12-01-2009 01:08 PM
12-01-2009 01:20 PM
12-01-2009 01:26 PM
Dennis Knutson wrote:
Wiring a ring is not supposed to create matching values to the strings and it is not supposed to have the option 'Add Case for Every Value'. An enum does have this option and it works for me in 2009. If it's not for you, post a VI that reproduces the behavior.
Adding to Dennis (Knight of the Lightning Fingers)...
Check all of the source tht feed the selector to enusre you don't have two different enums or a ring in the mix anywhere.
Anther quick check is to show the help window (ctrl-h) and use the wire tool to float over the wires to ensure the wire is actually an enum.
Ben
12-01-2009 01:53 PM
Dennis Knutson wrote:
Wiring a ring is not supposed to create matching values to the strings and it is not supposed to have the option 'Add Case for Every Value'.
To respond to the eventual question of "why not?" that may be asked: Good thing, too, since with the default data type of U16 for a ring that would be a whole lotta (65,535) cases that would be "conveniently" automatically added.
01-15-2018 09:03 AM
I have had this problem while working the Simple State Machine - Traffic Light.
When you open type def. be sure to right click the enum you are saving and "edit items..." This is where you can "Insert" the cases you want. Every word case will line up with a number ex:0,1,2,3,etc. Once you add all the cases, save the enum and close it, then the case structure should have the option to "Add Case For Every Value."
If the case structure does not have the option, you will still be able to add case before/after and type in the case you want without it showing up red.
I hope this helps!
01-15-2018 09:53 AM
@johnsonhp wrote:
I have had this problem while working the Simple State Machine - Traffic Light.
When you open type def. be sure to right click the enum you are saving and "edit items..." This is where you can "Insert" the cases you want. Every word case will line up with a number ex:0,1,2,3,etc. Once you add all the cases, save the enum and close it, then the case structure should have the option to "Add Case For Every Value."
If the case structure does not have the option, you will still be able to add case before/after and type in the case you want without it showing up red.
I hope this helps!
Sounds like you either do not have a type def or have one or more constant wired that is NOT the correct type def.
Ben
01-15-2018 10:39 AM
I am so glad we are still trying to solve this problem after 8 years!!!
01-15-2018 10:12 PM
I think my record was responding to a post that was about ten years old. Yikes.