LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuously saving to a new file

Hi,
The problem that I have is that my program is taking in a spectrum from a spectrometer and it can be seen. Each time a new spectrum comes up, it saves this to a new file. The problem is that each time the user has to type in the file name andclick save. What I need to happen is because I am going to need the program to run for approx 24 hours straight, It is not possible for me to be there each time a file needs to be saved, about every 15 min for the 24 hours. Is there some way that this can be done automatically in labview 7.1. Thank you
0 Kudos
Message 1 of 2
(2,553 Views)
It's easy. You create a string and use the String to Path function and then wire that to the file write function you're using. How you create the string is up to you. I've attached an example that shows how to convert current time to a path. You could also base files names on the iteration number of a for/while loop (i.e test_n.txt) or something you increment in a shift register.
0 Kudos
Message 2 of 2
(2,547 Views)