ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help required to resolve -200022 error

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 7
(3,903 Views)

Sorry to be more clear, the error occurs right after the DAQmx start task function.

0 Kudos
Message 2 of 7
(3,893 Views)

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.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 7
(3,883 Views)

What thermocouple modules are you using??
Is is NI 9214???


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 7
(3,879 Views)

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

0 Kudos
Message 5 of 7
(3,875 Views)
Solution
Accepted by ramjimep@gmail.com

Got it..!!
You're using 'On-Board Clock' for all of three Tasks (thermocouple measurement) and its causing conflict..!!

 

On-Board Clock.png

 

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...!!

 

Merge tasks.png

 

 


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 6 of 7
(3,866 Views)

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

0 Kudos
Message 7 of 7
(3,859 Views)