LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case structure isn't updated after modification of "enum" type

Solved!
Go to solution
Do you already have add all the cases for that case structure?
0 Kudos
Message 11 of 16
(1,675 Views)

Hi Pavel,

 

are you using an ENUM - or do you use a RING instead?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 16
(1,672 Views)

@Pavel_47 wrote:

In my version it looks like this


I opened your code in my 2015 and the option is there. Make sure you don't have any coercion dots in your code as your State control is passed around. If the case structure thinks you're just wiring a numeric, it won't understand that your enum has different states to add.

 

Edit: wow, four replies in under a minute. As dkfire suggested, maybe you already have all the cases added since you posted your code.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 13 of 16
(1,669 Views)

Yes I've all cases are added into case structure.

So this option appears only if some case are missed ?

0 Kudos
Message 14 of 16
(1,655 Views)
Solution
Accepted by topic author Pavel_47

Yup. You'll also get an error if you have a case that is no longer present in the enum. LabVIEW understands that you may not want to have a case for every option (hence a Default option), but won't let you have more cases than the enum has.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 15 of 16
(1,649 Views)

Ok, clear.

Thanks

0 Kudos
Message 16 of 16
(1,631 Views)