LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to file string sometimes with quotation marks

Hi Labview community,

I have a VI which creates a string array which I then wire to the "Write To Text File" VI.
One of the elements in the string array is a control input.
I have noticed that when the input is long, and I open the file in wordpad, then the string has quotation marks around it.
But when the control string is short, it appears in wordpad without quotation marks.
Additionally, a later element in the string array is also written with or without quotation marks depending on whether the control input string had quotation marks.

Can anyone explain this behaviour?  How can I get more certainty in whether the strings are written with quotation marks or not?


It created a problem for me when another VI parsed the file looking for the line with the string but could not find it when the quotation marks were present.

Jamie
Using Labview version 8.0
0 Kudos
Message 1 of 2
(2,633 Views)
Hi Jamie,

which LabView version do you use?
Could you attach an eample showing the problem? Normally 'Write to text file' just writes the string that is wired to it. It (normally) doesn't add quotation marks. The only option you can set is 'Convert EOL?' (input up to LV7.1, right-click in LV8+). The help window also didn't mention any quotation marks...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,629 Views)