JKI State Machine Objects

cancel
Showing results for 
Search instead for 
Did you mean: 

State Machine Objects Lifecycle

A State Machine Object (SMO) contains one state machine in the Process.vi. This method consists of a JKI State Machine with some extra elements built into it that are part of the SMO framework.

When you drop a new instance of a State Machine Object (SMO) into your LabVIEW block diagram and call its Create method, the framework initializes all the necessary components of the state machine and gets it ready to run. Then, it’s just a matter of calling the Start method and your state machine is running asynchronously. When you are ready to stop the state machine call the Stop method. If you want to discard the state machine for good, you can call the Destroy method and the framework does the rest.

The following diagram shows the complete state paths of an SMO. The square rectangles represent overridable methods you can implement to perform operations when the SMO moves between states. The colored ovals are major states the SMO can be in.

SMO-lifecycle7.png

Javier Ruiz - Partner at JKI
jki.net
vipm.io
0 Kudos
Message 1 of 2
(7,342 Views)

Where do the static dependencies of a SMO fit in this diagram?

 

Where are they created, started,stopped?

 

Thanks

0 Kudos
Message 2 of 2
(5,583 Views)