Il contenuto non è disponibile nella lingua selezionata.

Verrà mostrato il contenuto in un'altra delle lingue disponibili. Il tuo browser potrebbe avere delle funzionalità di traduzione.

Select More Than One NI-DAQmx Channel in LabVIEW

Updated Aug 2, 2023

Environment

Software

  • LabVIEW
  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

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

You can acquire data from multiple DAQmx channels in one DAQmx task using either NI Measurement & Automation Explorer (NI MAX) or LabVIEW. Both of these methods are described in more detail below.
 

NI Measurement & Automation Explorer

  1. Click the blue + button, as shown in the image below;
  2. If you need to select multiple channels from same device, you can use <Ctrl-Shift-LeftClick>and drag the mouse pointer to highlight multiple channels as shown in Figure 1. If you need to select multiple channels from different device in same task, you can <Ctrl-LeftClick>and drag the mouse pointer to select multiple channels from different device as shown in Figure 2.

Figure 1

multi-channel from different module

Figure 2
 

LabVIEW

  1. Select Browse... from a DAQmx control or constant, as shown in the image below.
  2. Use <Ctrl-Shift-LeftClick>and drag the mouse pointer to highlight multiple channels.
  3. 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.
 

Note: You can also type directly into the DAQmx control or constant. The syntax is described here in NI-DAQmx Syntax for Specifying Physical Channel Strings.


4. To wire multiple channels into a DAQmx Read or Write in LabVIEW, change them from a single channel input/output to a multiple channel input/output. 

Note: 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-?>.