LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Producer/consumer third loop stop problem

Solved!
Go to solution
Solution
Accepted by topic author rake615

Here are a couple of suggestions you can try, one with queues, one with user events. The queue would probably be the easiest to implement.

snip.png

 

 

snip2.png

 

These are just mock ups and you would have to close the queues, user events, etc., and modify to fit your needs. LabVIEW 2015 version attached.

 

mcduff

 

 

Download All
Message 11 of 13
(472 Views)

@Ben wrote:

@rake615 wrote:

crossrulz, I have been trying to understand more about your suggestion. I have attached an image I found in the ni forums to understand and see if that is what you mean. 


EventReinit

 

I do not know where you got that image from but with no timeout value wired it will never timeout.

 

Ben


Plus it is inside out.  The state machine goes inside of the Timeout case.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 13
(468 Views)

Thank you!!

The 2 different stop solution works if I want to add another constant to my enum to generate a "stop" enqueue to stop the first loop and a "stop loop" enqueue to stop the second loop.

However, I implemented the obtain queue for each consumer loop since that is my best option in the long run.

Thank you everyone.

0 Kudos
Message 13 of 13
(439 Views)