LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I Include Non-Displayable ASCII Characters in a Character String in Labview 6 ?

I would like to send different ASCII (ETX and STX)to a device via a serial connection.
The problem is that Labview understand it as the string E + string T + string X ...
how can I do it ?
Thank you for your help

Nicolas M
0 Kudos
Message 1 of 5
(4,354 Views)
What you need to do is configure your string control or constant for hex display by right clicking on it. Then enter the value. STX is hex 02 and ETX is hex 03.
0 Kudos
Message 2 of 5
(4,354 Views)
This has already been answered, but here is the ASCII to Hexidecimal conversion table:
http://www.geocities.com/solarissavvy/ascii.html

In case further questions come up!
Dave
0 Kudos
Message 3 of 5
(4,354 Views)
If I understand your question correctly, try using the Type Cast function (in the Advanced>Data Manipulation SubPalette). Where you want to insert your hex value, use a numeric constant and wire it to the Type Cast input. The output of the Type Cast will be a string with the non-displayable value.
Message 4 of 5
(4,354 Views)
thanks a lot to all people who answered to my question, and gave me the solution !
Nicolas M
0 Kudos
Message 5 of 5
(4,354 Views)