To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to poll the value change of a button to true.
Description
This VI shows how you can execute a block of code when a boolean control is change in one direction without using an event structure.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
You can use this same method for any data type, just set up the boolean logic to the need of your datatype.
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
A small added simplification, replace the 'not equal to' and the 'and' logic with a single 'greater than'
oh and...replace the 'on-loop' shift register and initialising with the new-ish shift register (left arrow) wire the switch into its initialisation input too.