LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

producer consumer loop only execute once?

Solved!
Go to solution

Hello here,

 

In my VI, the producer loop seems working continuously, but the consumer loop only execute once.

I haven't used producer/consumer pattern before, could someone give me some ideas why this happens?

My code is in attachment.

 

Thank you in advance.

 

 

Yaqiong

0 Kudos
Message 1 of 3
(2,123 Views)
Solution
Accepted by topic author Yaqiong

That would be the poor choice of using an event structure in the consumer loop.  As set up you must generate a mouse Leave or mouse enter event on Waveform Graph for the consumer loop to finish its first iteration. 

 

Delete the event structure.  you don't need it to update a graph.


"Should be" isn't "Is" -Jay
Message 2 of 3
(2,120 Views)

Thanks you it works!

 

I was trying to use event loop so that when my mouse is on the chart the scroll bar doesn't automatically scroll to the newest updates so I can see the previous waveform. Is there a way to achieve this within a consumer loop?

 

Yaqiong

 

0 Kudos
Message 3 of 3
(2,105 Views)