How Many DAQmx Tasks Can I Run Simultaneously?

Updated Jan 11, 2019

Reported In

Hardware

  • Multifunction I/O Device

Software

  • LabVIEW
  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

Issue Details

  • I have a PXI/PXIe DAQ, PCI/PCIe DAQ card or an USB DAQ device (63XX, 62XX, 61XX and 60XX Series devices). How many DAQmx tasks of each kind can I run simultaneously on the same device?
  • I have a cDAQ 913x controller or cDAQ 917x/918x/9191 chassis. How many DAQmx tasks of each kind can I run simultaneously on my controller or chassis? (See Additional Info in this case.)

Solution

Because hardware-timed tasks typically use more onboard resources than software-timed tasks, the total number of possible concurrent tasks typically depends on whether you are running tasks that use hardware timing or software (on demand) timing.
 

Hardware-Timed Tasks

Hardware-timed tasks require timing information from the System Timing Controller to use for sample clocks, reference clocks, triggers, etc. The following table illustrates the number of hardware-timed tasks available to the user.

 

Hardware-Timed Tasks
# of Tasks per Device
Analog Input1
Analog Output1
Counter InputN
Counter OutputN
Digital Input1
Digital Output1
 

Software-Timed Tasks

Most software-timed tasks do not require a signal from a System Timing Controller in order to run. Software-timed means the host computer is controlling how often a sample is read from or written to the module.

 
Software-Timed (On Demand) Tasks# of Tasks per Device
Analog Input1
Analog Output1 Task for each AO channel
Counter InputN
Counter OutputN
Digital Input1 Task for each digital line capable of Digital Input
Digital Output1 Task for each digital line capable of Digital Output


The number of counter tasks is always limited by the number of counters you have. Depending on whether you are using a counter task that uses multiple counters (like measuring frequency using the two counter method), you may be restricted to less counter tasks. To determine if you need one or two counters for your counter task, refer to How Many Counters Does Each Type of Counter Task Require?

Additional Information

It is possible to run Software-Timed tasks alongside Hardware-Timed tasks.

There are different timing engines in the NI CompactDAQ (cDAQ) chassis. If you are using this platform to develop your application, review the amount of tasks that can run simultaneously in the following document: Number of Concurrent Tasks on a CompactDAQ Chassis Gen II

What is a Task in NI-DAQmx?: Channels and Tasks in NI-DAQmx

WAS THIS ARTICLE HELPFUL?

Not Helpful