Installation and use of JKI state machine


foreword

Record the basic principle of JkI state machine and a simple use process.


1. What is the JKI state machine?

JKI State Machine is a template, we only need to modify this template, including some interface initialization, data initialization, and event response processing, which can be used to quickly create your own LabVIEW application.

2. How to install JKI state machine?

Install via VIPM.
Step 1: Open VIPM Browser.
insert image description here
Step 2: Enter jki in the search bar of VIPM Browser.
Step 3: Select JKI state mahine and click Install (I have already installed it here, so there is a check mark on the left).
insert image description here

3. How to use the JKI state machine?

1. Place in the program panel

JKI Toolkits >> JKI State Machine, as shown in the figure below.
insert image description here
The following figure is the framework of the JKI state machine.
insert image description here

2. Brief introduction of each branch

Right-click on the outermost while loop and select JKI state machine Explorer... to open all states for our convenience.
insert image description here
insert image description here
A brief introduction to each branch is as follows:
insert image description here

3. Parameter passing

There are two main ways to transfer parameters of the JKI state machine:
 1: Pass the parameters after the state, format: State >> Argument.
 2: Pass parameters through the shift register, you can bundle the parameters to be passed in the Data Initialize branch, on the branch that needs to use the parameter, get the parameter by unbundling by name, and on the branch that needs to update the parameter, press the name Unbundling updates this parameter.

4. To be continued...

Guess you like

Origin blog.csdn.net/qq_43517528/article/details/120194010