06-19-2012 10:19 AM
@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.
06-19-2012 10:21 AM
@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.
06-19-2012 10:23 AM
I found it one of the type def enum did not have 'Auto update' selected.