Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69523

Save data every few seconds in a control and simulation loop

$
0
0

Hello everyone,


I am running a control simulation where I created a sub VI to write the data to the file. However, the total data that I receive is extremely large (for a 10 second run time I get around 20000 data points) and hence I thought of saving the data at every few seconds.
So far, the only solution I can think of is using the while loop. But, any use of a while loop inside the sub VI is making the code get stuck there which results in the main VI not working.
I thought of the producer/consumer loop but am not sure if it would be applicable to the simulation loop. I cannot think of any other way to introduce a timing function or a way to reduce the data in a simulation running continuously.

I'd really appreciate some guidance in approaching this problem.

 

Thank You!

 


Viewing all articles
Browse latest Browse all 69523

Trending Articles



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