Example Code

Counting Up and Down using Shift Registers and Feedback nodes with LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

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:

  • LabVIEW 2012 (or compatible)

 

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

 

2012.png

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.