Do you really need a text file or would a binary also work for you? Text files are slow for two reasons:
- You have to convert your binary data to text format
- Text format is typically 5 - 10 times bigger than binary, meaning you have to write more to disk
If you want to use binary, check out NI-HWS or TDM (make sure you use the binary form, not the text form). NI-HWS would be best for waveforms, TDM for anything else. TDMS, a streaming form of TDM, is not available for LV7.1.
If you are streaming data to disk, you should not use the
Write Characters to File VI. Every time you call it, it opens the file, writes your data, and closes the file. Opening and closing the file is a huge overhead. This overhead is probably what is causing your long-term slowdown. Typically, you open the file, write the data multiple times, then close the file. The VIs you need are in the second frame of your sequence, just put the write VI in a loop.
If you are interested in speed, on Windows platforms, you get the best speed when the data size you write to disk is about 65,000 bytes.
If you have any more questions, please ask.