The Difference Between DAQmx Create Task and DAQmx Create Virtual Channel

Updated Nov 5, 2018

Reported In

Driver

  • NI-DAQmx

Issue Details

I'm having trouble understanding when I should use the DAQmx Create Task function and when I should use the DAQmx Create Virtual Channel. 

Solution

If you are using only one channel, you can use DAQmx Create Virtual Channel. It will create a DAQmx Task in the background, and you will not need to worry about creating one.

However, if you are using multiple channels, then you would need to create a Task and add the channels to it. 

Additional Information

Re: What's the difference between DAQmx create task and DAQmx create virtual channel?