LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save data with Write to Measurement File

I have a LabView program that I'm using to collect data from lab equipment.  I am using the Write to Measurement File  VI, (WMF), to save the data into a text format that I can use.  The problem that I am having is that it saves at what looks like a rate of 10 saves per second.  I am using the Save to Series of Files option in the WMF preference screen, and I have it set to terminate and start a new file after every 1 segment.  What I need to be able to do is save one set of data points, or one segment, every 15 minutes.  I think this is accomplished using the Enable imput on the block diagram, but I'm not sure how to set that up.  It would be ideal if this could be a control setting that can be changed on the Front Panel, but it would be ok if it's a constant on the block diagram.

 

Any help would be appreciated.  Thank you.

0 Kudos
Message 1 of 2
(2,515 Views)

To answer your basic question, you can use the Elapsed Time to control how often you want to do a save.

 

You have some other issues with the VI you posted. Your event structure needs to be in a while loop, and you can get rid of the whole sequence structure. It serves no purpose at all.

0 Kudos
Message 2 of 2
(2,512 Views)