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

multiple while loops write to file

$
0
0

hi!

I have a VI which collects data from different sensors (TC and ultrasound flow meters) at different rates (every 1000 ms for TC and every 50ms for flow meters). I placed the TC code in a while loop and the flow meters code in a second while loop running in parallel with the first one.

However, I would like to write all of the data into one lvm file using the express vi "write to measurement file" at the rate of the slowest instrument (every 1000 ms). How can I do that? I thought about using a third loop having the acquisition rate I want to use for the file and passing the data from the other loops with local variable but I'm worried about using local variables. Is there another way I can do?

Thank you in advance.

Valeria


Viewing all articles
Browse latest Browse all 66767

Trending Articles



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