LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Choose default output text file encoding

Solved!
Go to solution

I'm fairly new to LabVIEW, and I'm not sure which forum is the best place for this question.

 

I've been working with tab-delimited text-file outputs from LabVIEW VIs that act as control/data acquisition systems with various test cells. Even though all the outputs are raw text files, I've encountered four separate encodings for those files so far, namely UTF-16, UTF-16_le, UTF-8, and ANSI. More confusingly, I've seen the encoding of output files change between runs without changes in the code, namely from UTF-16_le to ANSI. In looking at the write-to-file VIs available in the library, I haven't seen an option to choose a default encoding, and ideally, I would like to specify UTF-8 as the default encoding for output files.

 

All that being said, is there a write-to-file VI or option to select where I can choose a default encoding? I've uploaded a screenshot of the context help for the VI that the programs I'm working with use to create the output files in question, as it is no longer in the standard library (these are slightly older programs).

 

Thanks

0 Kudos
Message 1 of 2
(4,035 Views)
Solution
Accepted by topic author desertfox07

Hi Fox,

 

there is no such thing in LabVIEW (yet). All files you write are plain ASCII (with using 8bit for each char).

 

The different encodings should only happen because of the software you are using to read the files created by your LabVIEW routine: that software seems to try to guess the best option…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(4,023 Views)