08-20-2013 02:05 PM
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
Solved! Go to Solution.
08-20-2013 02:10 PM - edited 08-20-2013 02:11 PM
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.
08-20-2013 02:34 PM
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