05-31-2013 07:13 AM
Hi all,
I have a VI that is throwing the -200022 error (after the DAQ mx). This has got 5 data acquisition channels out of which 2 of them (THERMOCOUPLE Channel1 & Pressure sensors - Channel 1 commented on the left inside the program) are throwing this error and not reading anything sensible and the program stops. However the other channels are reading proper values. When I checked them individually it works perfectly alright but when I put them together in the same program it is throwing the above error.
I looked into some of the solutions suggested but nothing has helped. Can anyone help me resolve this error. I have attached the VI as well.
Many thanks,
Ramji
Solved! Go to Solution.
05-31-2013 07:32 AM
Sorry to be more clear, the error occurs right after the DAQmx start task function.
05-31-2013 07:49 AM
Possible reason(s):
Resource requested by this task has already been reserved by a different task.
Now the resource mentioned here could be an ADC (which is normally available to each AI channel of a DAQ card in multiplexed manner, if the DAQ card is not of S-Series) or it could be reference clock to AI channel.. or could be some other resource...!!
If you can tell more precisely, where exactly (at which node/function) you get error...!! that will help understanding a better picture.
05-31-2013 08:09 AM
What thermocouple modules are you using??
Is is NI 9214???
05-31-2013 08:14 AM
I use NI 9213 for thermocouples and NI 9203 for the pressure sensors.
To answer your previous question, if you look into the code at the left extreme of every row I have labelled the channels. Again these are NI 9213 and NI 9203 modules as well.
Many thanks,
Ramji
05-31-2013 08:43 AM
Got it..!!
You're using 'On-Board Clock' for all of three Tasks (thermocouple measurement) and its causing conflict..!!
If you see here, the main reason (as I already specified) is "Resource requested by this task has already been reserved by a different task."..
I would suggest you to club all three task into one...!!
05-31-2013 09:33 AM
Awesome. Right on the money.
I found this helpful and stuck to same procedure, neverthless you were absolutely spot on.
http://digital.ni.com/public.nsf/allkb/3296BA2AEF586B7386256D6D00528E3D?OpenDocument