07-30-2009 02:41 PM
Hi!
just spent a day and a half to write a program that converts text in '\' code display to understandable text...but realised that I will receive my data in ascii instead. Is there a quick and easy way to convert between these two?
07-30-2009 03:03 PM
Right click on the control/indicator and you will find the options "normal display" and "'/' Codes display". You cannot uncheck the selected but you need to selected the unchecked one to toggle between both.
Felix
07-30-2009 04:02 PM
Hi!
Sorry but I can't make it work any way, I think that the problem is that I've got the string by email, I then copy pasted it into a normal display in LabVIEW, it then looked like '\' code display. But when I vahe the same data in ascii and changes the display like you told me to, it doesent work. So Im not realy sure what cinde of data have, I will include my vi's, they are a bit messy so i doubt thet they will help you..
07-30-2009 04:05 PM
07-30-2009 04:11 PM
07-30-2009 04:31 PM
A more important question. What is the source of your data. It is important to know that, if we want to parse your data.
07-30-2009 04:37 PM
When I wrote the TextConverter.vi this was my data..
\01\81\81\s\s\s\s\s\sAAA\sSSSSS\sSSSSS\03\01\81\82Date:\s\s\s\s\s\s\s\s\s\sTime:\03\01\81\841.\sAutomatic\smode\03\01\81\852.\sManual\smode\03\01\81\863.\sTest\smode\03\01\81\874.\sLog\ssettings\03\01\81\885.\sFile\smanagement\03\01\81\896.\sSystem\ssettings\03\01\81\8A7.\sSystem\sinformation\03\01\81\8ESelect\smode:\03\01\81\8FCurrent\smethod:\03\01\81\90Battery\svoltage:\03\01\91\8FRES\s\s\s\03\01\92\90\s13.15\sV\03\01\87\8220090728\03\01\96\8215:56:19\03.
And i just pasted it in a the string indicator..The data is from a divice that uses serial comunication with a DB9 port.
Whar I rely whant to do is to convert the data i previous posted int this type of data...then i think that my program will work fine..
07-30-2009 05:12 PM
07-31-2009 03:36 AM
Another guess...
Is this the output originally destined to a display terminal? The sequence \03\01\81\82 or similar looks as though is could be a screen position command for the display device. \03\01 is the command, x position \81, y position \82 (subtract hex 80 from the parameter to get the required position)
Rod.
07-31-2009 03:57 AM
Too late to edit......
change of idea: the screen position command is introdiced by \01
The end of the string is indicated by \03 (which is the ASCII 'ETX' - end of text - character)
I was able to get the string in the message (the version which showed \01, \s etc) into a LabVIEW string with the intended values by copy and paste into a control that was ALREADY in \ codes display mode.
Rod.