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

Reading data every minute.

$
0
0

Hi, I have some Simple Vi which mimics instrument reading. I am reading every second but in the array like after loop completes, I want every minute data should store not every second.

I have attached the Vi.

Set the time target Like For example 180sec for 3min or 600 sec for 10min.

 

example if you set time target for 600 sec means 10 min it should only store data in array 10 reading that is every minute.

 

I have tried to use case structure and Quotient & Remainder. It stores value for every minute but not continuously store the data in array. 

like

1min value stored

2min value stored

 

but in-between these minutes empty values are stored. I don't want that.

 

Please someone guide me.

 

SUMMARY: I want to read every second but log data every minute. 

 

If I give wait ms in while loop 60000 it reads every minute and logs every minute. But when you try to stop it, it will stop after 1minute not sudden stop.


Viewing all articles
Browse latest Browse all 68950

Trending Articles



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