To understand the general structure of this design pattern, refer to Using a State Machine (Event Driven) Architecture. A change in any condition of your interest can be evaluated during any state and it can be used to get the program to transition back to the case in which the code you want to execute again was placed. The state machine is composed by states that are represented by the code in each case of a Case Structure in LabVIEW, and the result of the execution of each case can be used to define the next state to execute. ![]() SolutionIn order to get a LabVIEW program to repeat the execution of a block depending on conditions that change during runtime, the state machine design pattern can be used.
0 Comments
Leave a Reply. |