03-03-2006 01:12 PM - edited 03-03-2006 01:12 PM
Hello All,
I am trying to get voltage and temperature from one device (6015/BNC) at the same time. Using MAX I can do that. But when I use C, it seems I always get error 50103 "specified resource is reserved". Here is part of my code:
DAQmxCreateAIVoltageChan(taskHandleAI0,......);
DAQmxCreateAIThrmcplChan(taskHandleAI1,......);
......
......
DAQmxStartTask(taskHandleAI0);
DAQmxStartTask(taskHandleAI1);
I have read some posts here. It seems impossible to create two tasks for one device at the same time. Then I wonder how MAX can do this? I guess that actually it creates two voltage channels, but converts automatically the voltage of thermocouple channel to Temperature? Are there anything I am missing? What is best way to measure both voltage and temperature (by thermocouple) at the same time?
Thanks a lot.
sipher
Message Edited by SiPHER on 03-03-2006 01:14 PM
03-03-2006 03:46 PM
03-06-2006 02:20 PM
Hi Sipher,
You can only have one analog input task at a time on a DAQ device. However, you can have multiple channels with multiple configurations in a single task. I recommend following the advice given earlier: set up the task in MAX with your different channels, then call DAQmxLoadTask in your code.
03-06-2006 02:30 PM - edited 03-06-2006 02:30 PM
Message Edited by SiPHER on 03-06-2006 02:32 PM
03-06-2006 05:25 PM
03-09-2006 10:35 AM
03-10-2006 10:22 AM
03-13-2006 02:41 AM
03-13-2006 06:11 AM