Example Code

Process Control with Predefined Steps (State Machine) Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This example uses a LabVIEW state machine architecture and an array of steps to run through a list of values and hold them for a given period of time.

Description
This type of application can be useful for controlling oven temperature or force pressure value over a multi-step long duration test. User can modify the step cluster to use your own data, this example use one numeric value and one boolean for each step.

User can modify the states or add more states by editing the array control on the front panel. When you run the VI it will run through all of the states in order

Requirements

  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

 

  1. Modify the states or add more states by editing the array control on the front panel
  2. Run the VI
  3. Will show current state and the execution time on the front panel.

 

Additional Information or References
Labview front panel

 1.png

 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Tariff Impact Update Learn more