08-22-2017 05:17 AM
Hello,
I was reading through the most recent posts regarding backslash mode on https://forums.ni.com/t5/LabVIEW/Is-the-backslash-a-printable-character-in-format-string/td-p/308056...
I previously worked on parsing RS-232 data however couldn't determine whether it would be possible for data in the text file to be formatted in '\' mode rather than hex. Is it possible for the backslash mode to be converted when being parsed via a text file? Are there any functions that can achieve the interpretation which is equivalent.
The only way I know to make all formats compatible is by right clicking on a control, indicator or constant so that all formats can be viewed.
Many Thanks
Solved! Go to Solution.
08-22-2017 07:13 AM
It is possible, but will be a pain to program. It would be easier to get a program that will let you view the text file in hex mode. Generally, the \ Codes is just a display format for the data in a string. And yes, you are not using the basic ASCII display, do so the format type.
08-22-2017 08:16 AM
I already answered to this question here.
Basically you need a string control or indicator whose display style is "\" Codes display. Read the text formatted with "\" codes from file and then assign it to the Text.Text property of the control: this is equivalent to manually typing the text into the control. After this assignment, the value of the control will be the desired string (e.g. the text \s will appear as a space character).