LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rearrange Cases

Solved!
Go to solution

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?

0 Kudos
Message 1 of 3
(2,758 Views)
Solution
Accepted by topic author ggaryt

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

Message 2 of 3
(2,755 Views)

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

Message 3 of 3
(2,751 Views)