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

Hello,

 

After modification of a "enum" type, the case structure wasn't updated - it still contain 2 states, whereas after modificatiion it must contain 4 cases.

Is it normal behavior ?

 

Thanks

 

Pavel

0 Kudos
Message 1 of 16
(5,104 Views)
Did you actually tell the case structure to add the new cases after changing the enum? Did you look at the right click menu?
Message 2 of 16
(5,084 Views)

Well, I considered that once "enum"-type variable that is connected to case structure changed, the list of cases in case structure is updated automatically.

But it seems that case structure doesn't work in such manner.

So, after "enum" type modification, one must add all new cases into case structure manually. Correct ?

0 Kudos
Message 3 of 16
(5,069 Views)
Yes, or automatically when you select to create all.
Message 4 of 16
(5,053 Views)

"Create All" ... where it's accessed ?

0 Kudos
Message 5 of 16
(5,041 Views)
Right click on the case structure and select 'add case for every value'.

LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 6 of 16
(5,026 Views)

 

In my 2015 version there is no such option, only "Add Case After", "Add Case Before".

0 Kudos
Message 7 of 16
(5,006 Views)

AddCaseForEveryValue.png

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 8 of 16
(4,998 Views)

In my version it looks like this:

case_structure_context_menu.jpg

0 Kudos
Message 9 of 16
(4,981 Views)
What do you actually have connected to the case selector? Your image does not show this. It must not be an enum.
0 Kudos
Message 10 of 16
(4,969 Views)