LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control input different tasks in DAQmx?

Hi guys,

 

I've been trying to build a program where I read various devices (i.e. Thermocouples, Pressure Transducers, etc.) with the DAQmx. I've been setting up one DAQmx for each ai channel but it is giving me a reservation error. After numerous iteration, I figured out that you could place various task in one DAQmx but I still need one DAQmx for Voltage, one for Temperature, and one for Current for the same device( Dev4). When I try to run it, the same error I had before comes up again. 

 

My question is: is there a way I can set up different DAQmx's for the same Device?

 

Thanks for the help,

 

Gus

0 Kudos
Message 1 of 3
(2,230 Views)
Please be specific when you say DAQmx's. There are multiple functions and you should use their names.

You use multiple DAQmx Create Channel functions on a single task and then a single DAQmx Read with NChan.
0 Kudos
Message 2 of 3
(2,228 Views)

One DAQmx "Task" may contain many "Channels".  For Analog Input tasks those channels are not restricted by type (Voltage, Temp, Current...)  HOWEVER, the DAQmx task creation wizard has this odd restriction and you have to add the channels one type at a time.  (Someone in the DAQmx group should look into this someday... Hint)

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,219 Views)