LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop parallel loops

If you don't want to put a timeout on the dequeue function, you can stop the consumer loop by destroying the queue reference after stopping the producer loop.

 

This is the NI suggested method for stopping both loops in a Producer-Consumer pattern.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 11 of 13
(423 Views)

Stop parallel loops.png

 

I would suggest adding some sort of delay in the status loop, it has nothing to slow it down and will be consuming a lot of cpu resources free running like that.

 

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 12 of 13
(416 Views)

Thank you!

I will use all of the information you wrote!

Idan 

0 Kudos
Message 13 of 13
(388 Views)