LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving data at a fixed interval

Currently I have my block diagram set up so that after every n number of loops, the data will save.  I'm using the remainder function and case structure for this, and while this works I want to make it save at certain time intervals instead of loop.  I've tried using the remainder function with several timing function but it doesn't seem to work because the data flow isn't continuous.  What timing functions are useful for this situation?  Should I still be using a case structure?

Thanks

0 Kudos
Message 1 of 2
(2,143 Views)
Depending on how much data you are saving you may want to use a parallel loop for writing the data. this will allow your regular processing to continue and not be delayed by the file write. As for which timing method to use I would use the Get Time VI and test the time against your desired interval. The express vi elapsed time would be a good place to look at how this could be done.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 2
(2,139 Views)