03-25-2014 08:41 AM
I am using the DAQ palette in LabVIEW to read virtual channels from DAQ input module. I have made many VI that read many inputs of three simulated modules. The problem appears when i run two or more VI´s that read inputs from the same virtual module (e.g.. first.VI reads module 1 input ai0 and second.VI reads module 1 input ai0), when this happen the next errors are showed:
Error -50103
NI Platform Services: The specified resource is reserved. The operation could not be completed as specified.
and
Error -200022
Resource requested by this task has already been reserved by a different task.
This is worrying because i want to get DAQ chassis and some modules, however if this problem is present with physical equipment my application could be useless. It means that module input only can be read once at time?
Solved! Go to Solution.
03-25-2014 09:24 AM
03-25-2014 11:01 AM
Ok, then if i read using two different Vi´s the same input it is not ok... The main problem is when i read different inputs from same module using different VI´s i have the same errors...
03-25-2014 12:45 PM
03-26-2014 11:43 AM
@Dennis_Knutson wrote:
You can't have more than one task in the same VI either. This error has been discussed numerous times. You can have a master VI that does all the acquisition and share the data to other VIs.
You can have more than one task in a VI, but you can't have multiple tasks attempting to acquire or generate data on the same channel. In that case, you will need to share the data in some way. The master VI will definitely work, but if the VIs need to run independantly, you can also take advantage of queues to pass the data around.
03-26-2014 01:30 PM
A queue should only be read in one place. If you have multiple destinations for your data, you would need a queue for each destination. This might be a situation were a Functional Global Variable might be a good choice.
Lynn
03-27-2014 09:43 AM
I have a master VI who calls 6 subVI´s at same time, those make the read from different channels of three simulated input modules... The problem was when one subVI reads an input from first module and other subVI reads an input from the same module (not neccesary the same input) erros appeared. I solved this cleaning the task after the read, now i have the issue that this solution causes that sometimes the reads become ceros, not in all times, but it is not desirable at all for my application...
I trying to solve this and any advice will be welcome...
03-27-2014 10:04 AM
03-27-2014 11:25 AM
I´m using global variables in each subVI to share data with main VI, however i found the solution by different way... I just change the read mode to single channel and sample dbl, so i don´t need to clean the reading task in my subVI´s, the zeros problem isn´t there anymore, and the six subVI´s work simultaneously!
Thanks for the advices!
03-27-2014 11:39 AM