Example Code

Single Bit Bitwise Shift Using 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

Download All

 

Overview
This example demonstrates how to shift a single bit down a register. Similar to multiplying by a factor of 2.

 
Description
This example utilizes the built in logical functions and data manipulatin functions to shift a bit down a line, instead of using an array. The program then counts the amount of times the shift has "looped" through the line.

 
Requirements

  • LabVIEW 2013 (or compatible)
  • Windows Media Player


Steps to Implement or Execute Code

  1. Run the VI
  2. Adjust the Bit shift Count if necessary

 

Additional Information or References

Front Panel

FP.png

VI Block Diagram

1.png 

 

 

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

 

 

Rob W.

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