02-06-2012 04:17 PM
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.
02-06-2012 04:35 PM - edited 02-06-2012 04:38 PM
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.
02-10-2012 03:44 AM
Thank you!
I will use all of the information you wrote!
Idan