LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increment file name after a given amount of time

I have a task to collect serial data from a device and write the data to a file.  There will be a lot of data, so I wanted to increment the file name after several hours.  I have written a small program to start with, but it only collects one data point.  I get multiple files, but each file only has one collected sample.  Any help would be appreciated.
 
Using LabView 8.20
0 Kudos
Message 1 of 2
(2,584 Views)

Take a look at the context help for the Write to Text File VI you are using and you will see it by design opens the file and then replaces all the contents then closes it. 

I would suggest opening the file outside the inner for loop, and then when you use Write to Text File VI it will work.  Check the Write to Text File example and you can see how it was done.

0 Kudos
Message 2 of 2
(2,581 Views)