To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI demonstrate how to implement a count of how many distinct time a Boolean Indicator reads True
Description
Here is a brief description of the example:
By using a Case Structure controlled by the current boolean value and a Shift Register to store the Boolean value of the previous iteration, we can keep an accurate count of how many times the LED indicator changes from F to T. This solution does not use an Event Structure nor any Local Variables, and is not blocking.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
Boolean LED Count 2014 NIVerified.png
**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.
You can do this a lot simpler by using the Boolean Crossing PtByPt.vi
