To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This small example shows how to use shift registers and feedback nodes to count up and down within a set range.
Description
In this example, feedback nodes and a shift register used for, count up and down between the lower value and upper (minus 1) every 250ms. To use in a SubVI have the stop value a true constant and output from the shift register.
Requirements
Software:
Steps to Implement or Execute Code
1. Run VI.
2. Observe that VI will count up and down the value which is defined and stored in shift register.
Additional Information or Resources
**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.