LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string(8A6E) to binary(16bit)

Hello ,

 

I have to parse a frame (13 words each of 16 bits each) ....Now the frame is a string array with (8A6E) kind of values which then need to be converted into a 16bit binary form for further parse.

available is string to byte function (8bit) ...and I need 16bits together only( parse requires MSB(2-15) like operations ...any suggestions??

0 Kudos
Message 1 of 5
(2,916 Views)

Try Hexadecimal string to number.

0 Kudos
Message 2 of 5
(2,914 Views)

Thanks ..but my input string array is normal ascii ...(HEX is only the display) .... (Šn -->8A6E(display) --> 1000101001101110 ) ....and then I should be parsing this binary data ...

soory for not being specific in prob description above

 

Thanks

0 Kudos
Message 3 of 5
(2,908 Views)

That is still not clear.  Exactly what do you mean be "normal ASCII".  When you see 8A6E on the string indicators, is that normal display or Hex display.

 

If that is normal display, you'll need to do what I said.  If it is hex display, then use typecast to typecast it to a U16 datatype, or an array of U16.

Message 4 of 5
(2,903 Views)

Yes ..it is the hex display ...and I think then I would try the typecast ..thanks a lot ...

0 Kudos
Message 5 of 5
(2,895 Views)