LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to increment a tdms file name

Solved!
Go to solution

Hello,

 I have a vi which register some data in a tdms file. So i 'm using open tdms file and write in tdms file. Furthermore I want increment the name of the file. The user has to write the name of the file, for instance if the file is named test I want the next file is called test1, test2, etc. Now if I forget to change the file, it is automatically replace and I lose all my saved data.

Can you help me to get an easy method to register the data in file with name incremented automatically please.

Thank you

0 Kudos
Message 1 of 4
(3,450 Views)

Personally, I'm not crazy about Express VI's, but there is an express VI called "Write to measurement file".  You can configure this to write to a TDMS and auto increment the file name.

 

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 2 of 4
(3,448 Views)
Solution
Accepted by Nico_AT

Hi Nico_AT

 

Perhaps is this what your're looking for? The VI just tries to start the File. Is there is no error it will close it and start the next one and so on.

 

 

Regards

Tobias

Message 3 of 4
(3,436 Views)

It's exactly what I'm looking for.

Thank you for your help.

Have a nice day.

0 Kudos
Message 4 of 4
(3,392 Views)