LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I continuously save to a file without having the vi ask the file name each time?

I am trying to have data read into a file without having the prompt pop up of asking the file name each run. Attached is my program.
0 Kudos
Message 1 of 5
(3,032 Views)
Two things,

The Write Characters to file.VI wants a valid file path. Your code does not appear to be doing that.

Also, that VI will by default prompt for a file.

I suggest you do as "save As" with a new name to your working folder. Then, modify this VI by wiring a constant to the input of the first VI in there where it lets you disable the dialog.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(3,032 Views)
Thanks for you help. Let me be a little more specific with my problem. I need the program at start to prompt the user for the file name once and then continuously add data to the same file address. I am unsure how to do exactly.
0 Kudos
Message 3 of 5
(3,032 Views)
Use a shift register to hold the file path and test to see if it is executing for for the time in order to create the file and then append in subsequent loops. Look at attached picture.
0 Kudos
Message 4 of 5
(3,032 Views)
Thanks... it does exactly what I need!
0 Kudos
Message 5 of 5
(3,032 Views)