To download NI software, including the products shown below, visit ni.com/downloads.
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
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**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.