Select More Than One NI-DAQmx Channel in LabVIEW

Updated Aug 30, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I am using NI-DAQmx with support for LabVIEW. How can I acquire data from more than one NI-DAQmx channel within the same task? Can I select multiple channels or ports from multiple modules?

Solution

There are three ways to acquire data from multiple DAQmx channels in one DAQmx task; one uses NI Measurement & Automation Explorer (NI MAX), and two use LabVIEW to assign multiple channels.
  • In NI Measurement & Automation Explorer:
    • Click the blue "+" button.
    • Use <Ctrl-Shift-LeftClick>and drag the mouse pointer to highlight multiple channels.​​
  • In LabVIEW (Option 1):
    • Select Browse... from a DAQmx control or constant.
    • Use <Ctrl-Shift-LeftClick>and drag the mouse pointer to highlight multiple channels.
    • If you want to select channels from multiple devices or channels that are not immediately next to each other in this list, use <Ctrl-LeftClick> to select each channel that you want to use.
  • In LabVIEW (Option 2):
  1. Type directly into the DAQmx control or constant. The syntax is described here in the online DAQmx help: Physical Channel Syntax
 
To wire multiple channels into a DAQmx Read or Write in LabVIEW, you will want to change those blocks from a single channel input/output to a multiple channel input/output. 

Additional Information

If you want to add multiple channels to the same task but have different configuration settings for each channel, you can add additional DAQmx Create Channel VIs to the reference task for each channel(s) with a different configuration setting. For further help with NI-DAQmx features, please refer to LabVIEW Context Help, invoked by pressing <Ctrl-H> or <Ctrl-?>.

WAS THIS ARTICLE HELPFUL?

Not Helpful