LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a State to Case Structure


@MwMonty wrote:

I am having a problem with a state machine where I used the Type Def for the Enum. I am now trying to add a state. I open the Enum Type Def and add a case. When I do this, the Case Structure changes to numerical values from the previous named values. What am I missing? I have auto-updated Type Def enabled.


You have not replaced all instances of your ENUM with the typedef. At least one is still a generic ENUM constant.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 11 of 13
(584 Views)

@NT_Engineer wrote:
Note, when I mention I cannot change the system design. I am talking about the actual rig that the program is controlling. Raven, thanks for the post. Yeah, the person who wrote this did not do what you suggest. So, I had to go in manually and add the new stage on each one.

And you should have taken the opportunity to replace all of ENUM constant with a typedef at this time. Had you done that now instead of adding a value to each constant you would not have to waste the time again next time you make a change.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 12 of 13
(583 Views)

I found it one of the type def enum did not have 'Auto update' selected.

0 Kudos
Message 13 of 13
(581 Views)