Example Code

Process Data from Multiple Sources in a Single Loop in 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 shows how to use a single loop for displaying data from multiple loops.

 

Description

This is achieved using queues in a Producer and Consumer Design Pattern. The consumer loop can be modified further to complete other tasks such as logging/analysis. Note that this does not synchronize the acquisition of the data.

 

Requirements

  • LabVIEW 2013 (or compatible).

 

Steps to Implement or Execute Code

  1. Run the program.
  2. Notice that data will start to come in from different loops.
  3. Click the stop button to exit.

Additional Information or References 

Block Diagram

 capture.JPG 

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

Liam A.
National Instruments
Applications Engineer

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