LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration "use next available filename" in "write measurement file" function

Solved!
Go to solution

My project recording signal and saving using "Write to Measurement File" function. I want to perform record multiple segments signals should have configured option "use next available filename". For example, if the original file is data.tdms then it will save the file into: data_1.tdms, data_2.tdms, data_3.tdms, ...
To do that I use a button control enable and disable write functionality.
In the past I have done normally. Now, I can not make it anymore, now every write new data were add into one file created without the next new file as desired, it has almost become a option "Append to file".

I use LabVIEW 2013Write measurement file.bmpConfigure.JPG

0 Kudos
Message 1 of 3
(3,032 Views)
Solution
Accepted by ducta9

Hello ducta9,

 

It looks like you currently have the Write to Measurement File Express VI configured to "save to one file" - this means that all data from a given session will be saved to the same file.  The file number will only be incremented once the application is restarted or the Reset Boolean input is set to True.  If you want to save to a series of files, select the "save to a series of files" option and configure the Express VI as needed to generate new files at intervals. 

 

If you want to write variable-size chunks of data to a new file every time the user clicks the Enable button, you might be able to get away with just wiring a True constant to the Reset.  I would still recommend taking a look at the options available in the save to a series of files settings.

 

Best Regards,

 

Tom L.
Message 2 of 3
(3,014 Views)

Thank 0utlaw very much!

I forgot the "Write to measurement file" function have "reset pin". Because I want to save the data segment with arbitrary length. So I have edited the program for add reset button and the program has responded my expectations.

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