LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I send measurement data to a file during sampling and not after?

Hi there, I am new to LabView and am in need of some help. I am acquiring temperature data which I am send to a LVM file at the end of the program. Is there a way to have my data recorded after each measurement (or periodically during the measurements if writing to a file every time will slow it down?)? I just wanted to ensure that if I am running the program for long periods of time that I will have some data stored in the case that the computer crashes, etc. and that I won't lose everything.

 

Any suggestions are appreciated!

0 Kudos
Message 1 of 3
(2,369 Views)
Of course. Whether to do it every time you get the data or periodically really depends on how fast you're acquiring the data and how much data you're saving. Can you provide some information as to what your code looks like? If you want to save it periodically (such as every 5 minutes) then you just need a shift register attached to your loop that keeps track of the last save time. In your loop you just need to check the current time to see if the time has elapsed to save. You could also just use the Elapsed Time Express VI.
0 Kudos
Message 2 of 3
(2,357 Views)

Hi,

 

Of course, you can open a file before the measurement starts and keep on pumping the data in to the file and close the same after the measurement finishes. But you have to take care of the criteria like sampling rate and the number of samples each time you are acquiring so that there is no chance to loose our program speed and CPU usage.

 

MRK (CLAD)

0 Kudos
Message 3 of 3
(2,350 Views)