10-11-2022 10:55 AM
I want to monitor the temperature of 4 independant equipments using 4 Labview VI programs . When I start more than two Labview VI I get the error 50103 : The specified ressource is reserved. The operation could not be completed as specified (this message refer to a temperature task ).
I assume that the NI9217 is saturated,
Thanks by advance .
10-11-2022 11:33 AM - edited 10-11-2022 11:36 AM
The 9217 has one output buffer. Whenever you create and run a DAQmx Task that output buffer is reserved for use by that Task and no other Task can get access to the same output buffer. So, you simply cannot run more than 1 Task at the same time.
You can create a Task that reads from any 1,2,3 or all 4 thermocouple channels at the same time and the output buffer will share its memory with each of the channels.
You don't have 4 independent equipments. You have 1 system that needs 4 temperatures monitored.
10-11-2022 12:00 PM
You might want to consider either making one program that does the job of your 4 programs, or if that's not possible, instead make a 5th program.
Whichever of those you choose, you would want to do it with some sort of a "server" architecture. Have one "thing" (either a section of code or a separate program) do all of the communication with the NI9217, and then have it serve up those results to the other sections of code or the other programs.
10-18-2022 02:46 AM
Thanks for your answer. I understand better the 9217 way of run.
As an interim solution, I have scheduled a waiting time of 30s between the opening and close of each temperature task.
I launch each program with a delay of 5s and it is running.
I will continue to find a more elegant solution.
Regards,
Labocvc