03-13-2010 11:34 PM
The attached VI allows me to convert a single ASCII character to to hex.
If I have a string of ASCII characters I can convert them by breaking the string into individual characters and converting each individually then forming a string again. Is there an easier way to convert an ASCII string into hex without parsing?
For example: CN1003001A (ASCII string) should equal 434E3130303330303141 (hex string).
Thank you
Solved! Go to Solution.
03-13-2010 11:55 PM - edited 03-13-2010 11:58 PM
String to Byte Array, Number to Hexidecimal String, Concantanate String.
03-14-2010 10:25 AM
03-14-2010 02:10 PM - edited 03-14-2010 02:10 PM
Dennis solution is not really equivalent to your posted example, he converts it into a hexadecimal formatted string, while you convert it to a number and display it in hex display format.
I really depends what you need to do with it later. For a plain front panel display, you could just set the string indicator to hex format instead of normal, no code needed (It will not be exactly the same but also slightly more "readable" because it will be grouped into words).
Can you tell us a little bit more about your application?