Archived:Selecting More Than One NI-DAQmx Channel in LabVIEW NXG

Updated Jun 20, 2023

NI does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Environment

Hardware

  • cDAQ-9174

Software

  • LabVIEW NXG

Driver

  • NI-DAQmx 17.0

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

Can I read from multiple DAQ channels in one task with LabVIEW NXG?


There are four ways to do this, outlined below: 
LabVIEW NXG Measurement Panels
  1. Select the NI-DAQmx task within LabVIEW NXG.
  2. Click Create New Input button.
  3. Use <CTRL> and click the mouse pointer to highlight additional channels.

NI-DAQmx API (Method 1)
  1. Select the DAQmx Physical Channel control or constant and make sure Allow Multiple Names is enabled in the Items tab.
  2. Select the dropdown from a DAQmx Physical Channel control or constant.
  3. Use <CTRL>  and click the mouse pointer to highlight multiple channels.

NI-DAQmx API (Method 2)
  1. Select the DAQmx Physical Channel control or constant and make sure Allow Multiple Names is enabled in the ​Items tab.
  2. Type directly into the DAQmx control or constant. The syntax is described here in the online DAQmx help: Physical Channel Syntax.

Create a Virtual Task in Measurement and Automation Explorer (MAX)
  1. Select the NI-DAQmx task within MAX.
  2. Click the blue "+" button.
  3. Use <CTRL> and click the mouse pointer to highlight multiple channels.