02-15-2017 01:33 PM
Hello,
In my VI, there are two while loops and i'd like them run parallel.
The DAQ Assistant is used to collect 1 thermocouple's data which will used to control 2 relays (DAQ Assistant4) which are included in the upper while loop.
Then the DAQ Assistant 2 is used to collect another thermocouple's data which will used to control the analog output(DAQ Assistant3) which is included in the lower while loop.
The DAQ Assistant and DAQ Assistant2 are using the same module and different channels.
If i run these two while loops in seperate VIs, there is no problem. But if i run them in one VI, there is errors shows: Error-50103: The specified resource is reserved.
Does anyone know the reason causes the errors? Thank you.
02-15-2017 01:38 PM
You have two tasks trying to use the same resources (ADC, clock, possibly even channel). That is not allowed. Why can't you just merge the reading of the thermocouples into a single task?
02-15-2017 01:50 PM
Thank you Crossrulz. i am using two DAQ assistants to collect the data of two thermocouples. Using The same module (NI9211), different channels. Each thermocouple's data will be used seperately for each while loop. Is this allowed? Thanks alot.
02-15-2017 01:59 PM
@jzhu001 wrote:
Thank you Crossrulz. i am using two DAQ assistants to collect the data of two thermocouples. Using The same module (NI9211), different channels. Each thermocouple's data will be used seperately for each while loop. Is this allowed? Thanks alot.
No. The sample clock and the ADC on the 9211 will be needed for both tasks. That is not allowed. You either need another 9211 or combine into a single task.
02-15-2017 02:16 PM
Thank you. Now I understand. Do you know if i combine the two thermocouple data togehter in one, then how can i seperate them for differet purpose? Do you know which function i should use?
Thanks
02-15-2017 02:31 PM
Since you are using the DAQ Assisant, Split Signal is probably the one you want.
02-15-2017 03:25 PM
Thank you. Sorry that i am confused that after i split the signals, how can i know which one is which one? Is there any rules?
02-15-2017 03:39 PM
They come out as #1, #2, #3 in order from top to bottom. (or 0, 1, 2, 3 if you start counting based on zero.)