01-10-2017 01:25 PM - edited 01-10-2017 01:29 PM
Hello all,
I ran into a problem today with DAQmx tasks. I am getting error 20022 "Resource requested by this task has already been reserved by a different task". I got this error when I tried to add a thermocouple DAQMX task in another loop. I am currently reading strain from a NI9219 and volts from a NI9205.
Is there a limit to the amount of analog input tasks you can start on a single chassis?
I've included a screenshot of my devices below. Thanks!!
Solved! Go to Solution.
01-10-2017 02:36 PM
According to the product page, you can have 7 taks running. I am counting 4 on the screenshot you gave. But if the tasks are running at the same rate, why not just use 1 task and make your life A LOT easier?
01-10-2017 02:49 PM
I can start them from one task even if they are in 2 different loops and sampling at different rates?
01-10-2017 03:25 PM
@nsievers wrote:
I can start them from one task even if they are in 2 different loops and sampling at different rates?
Nope.
Bob Schor
01-10-2017 03:28 PM - edited 01-10-2017 03:29 PM
Drat -- I meant to edit my previous (very brief) remark, but it got away from me. I tried to look at your code, but I'm allergic to "Pictures of Code". Please attach the actual VIs so that I (and others) can (a) avoid Eye Strain, (b) see all the wires, (c) see all the Cases, (d) edit/clean up the code to make it easier for us to understand, (e) see what version of LabVIEW you are using, and maybe even (f) run the code.
Bob Schor
01-11-2017 06:49 AM - edited 01-11-2017 06:49 AM
There really isn't much else to see. I was able to get everything reading by combining two of the tasks. Thanks for the suggestions crossrulz.
01-11-2017 09:06 AM
@nsievers wrote:
Thanks for the suggestions @crossrulz.
Your words are meaningless. Thanks are given with Kudos and Marked Solutions.
01-11-2017 10:03 AM
Got it. Just marked as solution and kudos.