11-07-2011 01:25 PM
Question,
I'm trying to change the order in which a case structure executes. I have a case structure in a state machine form and I want to move one of the states up so that it will executes one state earlier in the structure. I have tried rearranging the case but it still follows the created execution order. How does one change the state machine execution order?
Solved! Go to Solution.
11-07-2011 01:33 PM
The order of the cases in a case structure has no bearing on the execution order of the state machine. The state machine executes based on the values you provide to the case selector. You may wish to review this article: Application Design Patterns: State Machines
11-07-2011 01:51 PM
As smercurio_fc said: The order of the cases in a case structure has no bearing on the execution order of the state machine.
Now if you want to reorganize the order of the cases in the case structure right-click on the structure, select Rearrange Cases ... and in the case list box select and drag a case to the desired position. A logical order of the cases in a state machine makes it easier to understand.
Ben64