LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to File.vi - string length > 80 chars?

I am writing data out to a file using several concatenated strings, and somewhere the string length is being limited to 80 characters long. The data file is opened using Open/Create/ReplaceFile.vi, and written to using Write to File.vi. If my data is under 80 characters in length, it works fine, but if over 80 characters, it wraps around to the next line, overwriting the next line's data. Running in single step mode, I don't find where the character string being written out is limited to 80 characters.. My terminal window, looking at the data, is 120 characters wide. Ideas? Thanks!
0 Kudos
Message 1 of 3
(2,954 Views)
First, I offer the possibility that your text may be scrolled off of the screen when you try to display the text file if you are using Notepad.

I offer that because I can neither simulate this problem, nor do I ever remember anything of this sort happening.

It is possible that you may be embedding some form of null or other character that is inadvertantly causing this to ocurr. If you could post your code, or a screenshot of the diagram at least, we may be able to help you solve this problem.

Also, please post the text file that is written.
Message 2 of 3
(2,954 Views)
Not rolling off .. did a test and verified that the terminal window does handle 120 characters wide ok.
I'll load the vi - its sequence 16 where everything gets collected together and outputs to file. (I think that, without the A/D boards that feed the data back in, you won't be able to duplicate the problem.) The concatenate strings vi at the lower left is the fellow that collects everything and sends off to file.
(Actually, on testing I see that the additional string, being fed from an earlier sequence, doesn't show up on the debug string out, but does show up in the data file somehow.) That may be "THE" problem.. I'll work on that.
Download All
0 Kudos
Message 3 of 3
(2,954 Views)