Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How I write my data into a file?

I can write the data I get in indicators into a file. But it asks file name all the time and rewrite. How can I write all the data into one file?
0 Kudos
Message 1 of 2
(2,963 Views)
There are a number of ways to write data to a file in LabVIEW, and the answer to this question depends on which one you are using. In general, when using the basic File I/O VIs, what you want to do is open a file and then pass the refnum from one write to the next and close it when you are done. As long as the file is still open, LabVIEW will append to the file instead of recreating it. If you want to use multiple opens or you want to run the program multiple times and append to the same file then set the "function" input of the Open/Create/Replace File.vi to "open or create". This will tell LabVIEW to create the file the first time the VI is run, and append to it afterwards. Hopefully that answers your question, please elaborate if it doesn't.

Ryan
NI Applic
ations Engineer
0 Kudos
Message 2 of 2
(2,962 Views)