LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convers ascii string to hex string


@ikaloopy wrote:

suppose i get below answer when the barcode being scan.

"r%  & Mb!Hd"Cf


This means you already have the binary string (not the hex formatted string as in the example posted). All you need to do is change the string indicator to hex display. No code needed.

0 Kudos
Message 11 of 25
(3,948 Views)

sorry but i dont understand. i try to change the properties of string to hex display but it give out diff value.

0 Kudos
Message 12 of 25
(3,942 Views)

This conversation is going in circles.

 

When you use the barcode scanner, what shows up in the string that comes from it?  Is that string indicator in normal display or hex display mode?

 


Now once you have that, how do you want to convert it?  What do you want things to look like on the screen in the end?  And is that with the string in normal display or hex display mode?

0 Kudos
Message 13 of 25
(3,940 Views)

sorry.im still new in labview and all this. what i need is to display in the hex format after converted by the binaryto hex.vi. which is "r%  & Mb!Hd"Cf

i just dont know how to convert from this value of : 60025205000006000000000000000000 to value of 227225202026204D62214864224366.

0 Kudos
Message 14 of 25
(3,936 Views)

sorry for be unpatient. but did u could not help me to understand this thing.

0 Kudos
Message 15 of 25
(3,930 Views)

@ikaloopy wrote:

sorry.im still new in labview and all this. what i need is to display in the hex format after converted by the binaryto hex.vi. which is "r%  & Mb!Hd"Cf

i just dont know how to convert from this value of : 60025205000006000000000000000000 to value of 227225202026204D62214864224366.


You need to be more specific what that "conversion" is supposed to do.

0 Kudos
Message 16 of 25
(3,925 Views)

actually i dont know the form of this number of 60025205000006000000000000000000. how did RavenFans change to the hex string of 227225202026204D62214864224366. im clueless..

0 Kudos
Message 17 of 25
(3,920 Views)

@ikaloopy wrote:

actually i dont know the form of this number of 60025205000006000000000000000000. how did RavenFans change to the hex string of 227225202026204D62214864224366. im clueless..


Ravens converted "r%  & Mb!Hd"Cf" to 2272 2520 2026 204D 6221 4864 2243 66.

 

Where did "60025205000006000000000000000000" suddenly come from? You are not making a lot of sense....

0 Kudos
Message 18 of 25
(3,916 Views)

ok sorry i give the different value. from this value of 60025205000006002D42012844022346

0 Kudos
Message 19 of 25
(3,913 Views)

is it still not making sense. im confuse the binary form in math with this form as u said it is binary string already.

0 Kudos
Message 20 of 25
(3,906 Views)