LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

main server for 4 vi that uses semaphores

Hi, I'm building an application for an assembly line. We use a NI-DAQ module that is accesed by 4 vi in the same time. Those 4 vi are controled by a main vi. I know that I need to use semaphores because the program crashes. The problem is that I don't see how I can incorpore the semaphores in my program. I include one of the program (the 3 other ones are the same) and the main program. I hope that someone can help me with it because we enter in production very soon. Thanks
Download All
0 Kudos
Message 1 of 2
(2,497 Views)
Check out the semaphores example in the examples that ship with LabVIEW. They do what it appears you want to do, that is, protect from calling the same data acquisition subVI at the same time.

If you are trying to have it so that your 4 VIs don't acquire data at the same time, then semaphores are your answer, otherwise, a different solution is in order, especially if you are trying to share the data.

Good luck
0 Kudos
Message 2 of 2
(2,497 Views)