Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save file having name as time and date of saving in labview

Hello All,

 In a day i have to read many times data from Spectrum analyzer and each time  i want to save it in file on PC. While saving i wish to save those files having name as the date and time of saving on My PC. Is this is possible using labview? If yes can anyone guide me in that case.

 

Thanks in advance....

Pals

0 Kudos
Message 1 of 6
(5,629 Views)

This question comes up alot. Here is one example.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 2 of 6
(5,623 Views)

Thanks a lot GovBob,

 

But in this every time i have o feed the date and time right??? I want that time and date automatically taken while saving on PC.... Is this possible? As my program will keep on running for hours and simultaneously keeping saving according to the respective time and date...

Thanks once again....

Pals

0 Kudos
Message 3 of 6
(5,619 Views)

You don't have to feed it anything except the data you want saved. Did you try to run it? It does exactly what you asked, it creates a file using the current system date and time as the file name.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 4 of 6
(5,616 Views)

You could also use a single Format Date/Time String and skip all of those search and replace functions. It's also better to use the Build Path function instead of the concantanate string.

 

This is pretty basic stuff with everything explained in the help for the date/time functions.

0 Kudos
Message 5 of 6
(5,601 Views)

Thanks so much....

0 Kudos
Message 6 of 6
(5,580 Views)