To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI demonstrates how it is possible to force a user to press and hold a button in order for a specific action to occur.
Description
The accuracy of the button hold time is controlled by the event structure timeout value. The smaller this value is the quicker the loop will iterate. Therefore, it will be able to detect a change in the button's value in less time. However, because the loop is running more quickly, it will consume more resources on your machine.
Requirements
Steps to Implement or Execute Code
Additional Information or References
**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.