Quantcast
Channel: Multifunction DAQ topics
Viewing all articles
Browse latest Browse all 6878

How can I save all the data in the queue before releasing it?

$
0
0

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


Viewing all articles
Browse latest Browse all 6878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>