Setting Different Analog Input Voltage Levels for Each DAQmx Channel

Updated Oct 19, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

  • Can I set different voltage ranges for each channel in my task?
  • How do I change the voltage range for each channel in my DAQmx task?

Solution

There are two main ways of doing this with DAQmx. The first involves using NI MAX in conjunction with LabVIEW and the other can all be done in LabVIEW. 
 

A) Using NI MAX

  1. Open NI MAX and select your device from the Devices and Interfaces drop-down menu.
  2. Click on Create Task... from the toolbar at the top of the window then Acquire Signals>>Analog Input>>Voltage. Select the device then the channels you want to include in your analog input task by clicking the first channel, holding the shift key and then clicking the last channel in your list. You can also select them individually by holding the control key and then selecting the channels one by one. Click Next> after selecting the analog input channels you would like to include for your task
  1. Name the voltage task and click Finish
  2. Configure the individual voltage ranges in the configuration panel by clicking each channel and setting the signal input range.
  1. In LabVIEW, wire your task directly in the DAQmx Timing VI, as shown below. The DAQmx Create Task and DAQmx Create Virtual Channel VIs are not necessary because you already created the task and channels in MAX.

If you need to edit the channels in the future, you can do so in MAX by adding or removing them as required.
 

    B) Using Create Channel VIs

    You can also assign different input voltage ranges to your analog input channels exclusively in LabVIEW by using multiple DAQmx Create Virtual Channels VIs to create different channels and set different analog input voltages for each channel. An example of this is shown below.

    Additional Information

    WAS THIS ARTICLE HELPFUL?

    Not Helpful