LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ascii to '\' code display

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?

Download All
0 Kudos
Message 1 of 10
(3,397 Views)

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

0 Kudos
Message 2 of 10
(3,382 Views)

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..

Download All
0 Kudos
Message 3 of 10
(3,359 Views)
Can you attach the original, unmodified ASCII data? in it's native format
0 Kudos
Message 4 of 10
(3,357 Views)
          AAA SSSSS SSSSS‚Date:          Time:„1. Automatic mode…2. Manual mode †3. Test mode‡4. Log settingsˆ5. File management‰6. System settings Š7. System informationŽSelect mode:Current method:Battery voltage:       
0 Kudos
Message 5 of 10
(3,355 Views)

A more important question. What is the source of your data. It is important to know that, if we want to parse your data.

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 6 of 10
(3,344 Views)

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..

0 Kudos
Message 7 of 10
(3,340 Views)
Your data looks like a set of labels with binary data. Is it some sort of typecasted cluster? Please tell us more about your data source


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 8 of 10
(3,329 Views)

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.

 

0 Kudos
Message 9 of 10
(3,308 Views)

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.

 

0 Kudos
Message 10 of 10
(3,298 Views)