LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitor active daqmx tasks while vi is running

Is there a way to monitor what tasks are running while a VI is running? I am getting a "resource requested by this task has already been reserved by a different task" error.  To the best that I can tell I have properly cleaned up all tasks before it gets to the sub-vi that is bombing out.  In this

this thread it is suggested that the error might be timers that are the problem.  The DAQmx task that this sub vi calls is only called at this point, and that analog channel is only called by that task, so that kind of makes sense.  I am using an NI9178 with a 9215 AI, 9263 AO, 9472 DO and 9422 DI modules.

Jim

LV 2020
0 Kudos
Message 1 of 2
(2,777 Views)

Hi Jim,

To my knowledge there is not a way to actively see what DAQmx tasks are running, though you could use probes on the task wire at various points to see how far along the VI has executed (the probe shouldn't have a value until that wire is reached in execution). Here are directions on using the Probe Tool, in case you (or someone who runs across this later) aren't familiar: http://zone.ni.com/reference/en-XX/help/371361M-01/lvhowto/using_the_probe_tool/
You might also be able to use the "DAQmx Is Task Done" sub VI to see if the tasks have completed. 

Some more information on your application would likely help others on the forums provide assistance. Which modules are you trying to use in this specific task? A screenshot of your code, or at least in the area where the error is occurring would help as we

Charlie J.
National Instruments
0 Kudos
Message 2 of 2
(2,736 Views)