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:
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.
Message Edited by SiPHER on 03-03-2006 01:14 PM
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.
Message Edited by SiPHER on 03-06-2006 02:32 PM