07-15-2015 04:23 PM
Hello All,
My company recently got a NI cDAQ-9178 with the NI 9403 module and NI 9923 terminal. I am still learning LabVIEW and I need my program to generate a single low pulse when the pulse wave that is used as a trigger in the PFI0 terminal goes low. It also has to continuously monitor the state of an LED through the NI 9923 terminal. I created a task for both the reading and the writing part. I ran them separately and they work, but when I run them together in the same VI, it gives me
Error -201105
Possible reason(s):
Resource requested by this task has already been reserved by a different task with conflicting settings.
Unreserve any other tasks using this device, or change their settings to be compatible with this task.
I'm not sure how to fix this. The VI is attached. Thanks for any help in advance!
07-16-2015 07:48 AM
I just took a very quick glance at your code.
Try to remove the DAQmx Stop Task from the loop.
Look at the help for ths VI.
Owning Palette: DAQmx - Data Acquisition VIs and Functions
Installed With: NI-DAQmx
Stops the task and returns it to the state the task was in before the DAQmx Start Task VI ran or the DAQmx Write VI ran with the autostart input set to TRUE.
If you do not use the DAQmx Start Task VI and the DAQmx Stop Task VI when you use the DAQmx Read VI or the DAQmx Write VI multiple times, such as in a loop, the task starts and stops repeatedly. Starting and stopping a task repeatedly reduces the performance of the application.