Example Code

Delay Generation - State Machine Demonstration 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

Download All

Overview

This VI displays the functionality of a state machine by controlling the execution of a code.  

 

Description

This VI is an example of how you can use the state machine architecture to control the code execution. This could be useful if you have some code that cannot be stopped for a certain amount of time since it has started. With the example attached there is a 5 second period from pressing start where you cannot immediately stop the VI.

This example only demonstrates a way of implementing the delay behavior. Making the interface user friendly is left up to the end user of the code.

 

Requirements

  • LabVIEW Base Development System 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "Delay Generation NIVerified.vi"
  3. Run the program

 

Additional Information or References

VI Block Diagram

4-388_BlockDiagram.png

 

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

 

Aaron. E
Product Performance Engineer
Dyson

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