LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop conflict of two subVIs with the same name in a while loop.

SubVI is a time delay that when the input becomes true it waits a specified time before making the output true. Two of them are used in a while loop. When one is called it resets the other. They need to be independent.
0 Kudos
Message 1 of 3
(2,611 Views)
You have described a perfect case for reentrant execution. Open up the VI Properties of your subVI and select Reentrant Execution. When a VI is reentrant, each instance of that VI has its own data space. Without that quality, each time the subVI is called (no matter where in your code) the data space is overwritten.

Remember, Alliance Members are here to help. We do this stuff every day.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
0 Kudos
Message 2 of 3
(2,611 Views)
Thanks for your help- the VI works properly.
0 Kudos
Message 3 of 3
(2,611 Views)