LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-Update File Path Name

Hello! I am currently trying to create a basic program that will save oscilloscope data to a file. I have it all working correctly, but ideal I would want to update the file name every time I run the program. So I press run, I trigger my source, the function(s) plot on the waveform chart, and it auto-saves to a specified location. Then, the next time I run it, it saves to the same location with a different name (e.g. data_1 then data_2, data_3 etc...). Would there be a way to do this while simultaneously keeping everything I've done so far relative consistent? I really only want to change the file path part of the block diagram. Thanks!

 

0 Kudos
Message 1 of 4
(281 Views)

Try "Create File with Incrementing Suffix"

Message 2 of 4
(253 Views)

@Mancho00 wrote:

Try "Create File with Incrementing Suffix"


Was going to mention the same thing, but I will instead add that this is in the "Advanced file funcs" folder of the palette, under "File I/O".  Or, you can browse to it at "<vi.lib>\Utility\file.llb\" in your LabVIEW folder.

 

Link to help page 

0 Kudos
Message 3 of 4
(236 Views)

Thank you so much! I will work on implementing this.

0 Kudos
Message 4 of 4
(195 Views)