LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I append data and sequence numbers to a *.csv file name?

All,

 

I am looking for an easy way to build a filename with the data and time included, as well as a sequential number between 1 and 999 in the following format:

 

C:\TestDirectory\test_11-08-25_1551_1301_001.csv

 

I have looked at using the Express function "Write to Measurement File" but I cannot see an easy way to include column headers as text into the output file.  Maybe someone could show me how to do that?

 

Or, someone could point me toward another function that allows me to date and serialize the file name.  Any help would be greatly appreciated.

 

I could code all this the old-fashioned, manual way, but I would rather find out if LabVIEW has built in functions that do this first.

 

Thanks!

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 3
(2,402 Views)

Like this

Tim
GHSP
Message 2 of 3
(2,389 Views)

Thanks!  That is similar to the "Brute Force" method I used.  If there are no built-in functions, I will keep using your method!

 

Cheers!

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 3 of 3
(2,383 Views)