Example Code

DAQmx Acquire with Multiple Channel Input Ranges

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.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

 

Overview

  This VI shows how to use DAQmx to acquire data from multiple channels each with their own Input Range. 

 

Description

This code shows how to use DAQmx to acquire data from multiple channels each with their own Input Range. The code also displays the data of each channel separately.

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

  1. Configure the parameter for the right channel and device
  2. Connect your hardware appropriately
  3. Run the VI

 

Additional Information or References

 Front Panel

Front_Panel.PNG

 

Block Diagram 

block_diagram.PNG

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

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

Comments
dPMU
Member
Member
on

I am new to labview. I am wondering will this vi simultaneously read from two or more channels?

Thanks