Jump to content

State Diagram Example


Recommended Posts

This LabVIEW V6.1 example State Diagram illustrates how to make any VI startup with the same control settings that it had when it last was closed. It also shows a technique for creating a State machine with states that are defined by a text file and that therefore can be easily changed without recoding.

Analog and digital outputs (called actuators in the example) are generted that are a function of each state. These are also defined by a text file to meke programming changes easy.

The example uses 3 digital inputs to effect state changes. For convenience though, the example uses the numbers 0 - 7 as inputs to change states and the 3 digital inputs are simply shown as outputs. See the code for more details.

Start the program and click on the DI simulator (0 - 7) to effect a change of state. The diagram will display the results. You can edit the State Transition Table to reconfigure the State diagram or edit the Actuator Table to change the outputs associated with a State.

Lew Drake

Process Automation Corporation

908 359-1011

Download File:post-12-1081709930.zip

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.