03-24-2016 09:14 AM
I´m using NI9244 and NI9246 to make a powermeasurment program in LabVIEW. I plan to expand the program with NI9237 which will measure the force on a load cell. However when running the program I encounter an
error 200022: Resource requested by this task has already been reserved by a different task. Why does this happen and how do I resolve it?
Solved! Go to Solution.
03-24-2016 09:21 AM - edited 03-24-2016 09:21 AM
The description of the error tells you the problem!
If you have two tasks trying to access the same piece of hardware, one of them will fail as the hardware resource is reserved by the first task to open. You need to combine all of your analog data acquisition (at least for the same module) into a single task.
03-24-2016 09:42 AM
I have tried to simplify the problem with this new VI. I am usinging three different modules.
Can you show me a solution in this new program?
03-24-2016 09:48 AM - edited 03-24-2016 09:48 AM
The answer is the same - you have 3 DAQ assistants trying to access the same piece of hardware so only one will be successful. You need to combine them to a single DAQ assistant and then split the signals afterwards. You can normally only have 1 analogue input DAQ task per piece of hardware (e.g. cDAQ chassis).
(Of course, I would also recommend using the DAQmx VIs for your data acquisition instead of ExpressVIs, but the problem is still the same)