LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hex convert example

Dear forum members, i attached one example where I have Hex Display string, i want to convert it Normal display but same hex digits, is it possible? And my 2nd question is, how to seperate the string 2 part? every 8 byte seperate 4 byte-4 byte, like this...
 
1st 0000 24A3                    2nd 0000 0063
      0000 244C                           0000 0062
Etc.
 
Thank you in advance!
 
Sincerely yours
Harut Melikyan!
0 Kudos
Message 1 of 3
(5,223 Views)

First convert the string to a byte array. There is a vi under the string conversions pallete. Then use the number to hex string conversion vi, which can be found in the numeric conversions pallete. Add a space in between every 2 bytes and you will have a normal string with the same look as what is in your example.

 

Hope this helps,

 

 

CyberTazer
Software Systems Engineer
Message 2 of 3
(5,219 Views)


Melikyan wrote:
..., i want to convert it Normal display but same hex digits, is it possible? And my 2nd question is, how to seperate the string 2 part?
Easiest would be to just grab the "text.text" property of the hex formatted display.
 


Message Edited by altenbach on 04-03-2008 08:29 PM
Message 3 of 3
(5,204 Views)