To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example records the sequence of button presses, and returns it in order.
Description
There are three Boolean buttons on the front panel. The user can press these inputs in any order and then press the stop button when they are finished. The VI will return the sequence of the button presses in an array. One example use would be for recording a sequence of an event based state machine. The code could even be expanded to log the presses buttons on your keyboard.
Requirements
Steps to Implement or Execute Code
Additional Information or References
The following is the front panel and block diagram used for the example code:
**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.