↧
Hi all,
I have problem saving the complete data when using the Producer/Constumer structure.
My VI has a data aquizition loop and a data saving loop (to excel). The data saving loop will run slower than aquizition loop such that some data is held in the queue. So I missed the latter part of data due to the sequence of stopping the loop. The way I stop the loop is immediate. When I press the stop button, I clean up and release the queue. The data in the queue that not consumed by excel will be released.
How can I save all the data in the queue before release it? Can you give me some instruction on that?
I attached some simple VI for your reference.
Thanks so much!
best