LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String to binary

I want to display a hex string (FF) as its 8 bit equivalent (11111111), i have tried "Hexadecimal String To Number" and so on, with no luck. This is probably a simple task, but i am nonetheless stuck!
 
Cheers!
0 Kudos
Message 1 of 8
(4,431 Views)
 
I simply want to display my hex value as 8 bits on LED's...
0 Kudos
Message 2 of 8
(4,419 Views)
You are half way there.  You can right click on the numerical display, select properties, go to the "Format and Precision" tab, and select "Binary" from the list of options.
Message 3 of 8
(4,411 Views)
I am not using a numerical display, i need 8 led's representing the hex value in binary...
0 Kudos
Message 4 of 8
(4,406 Views)

String control Byte (Hex) is in Hex mode. I then convert the byte using type cast to U8. The U8 can then be converted to an array of booleans. The trouble here is that the LSB on on the left side but it can be reversed if you prefer the LSB to the right.

Does this help you?

David

Message 5 of 8
(4,399 Views)

David,

Thanks, but i am using LV 7.1, so i cant open your VI.

0 Kudos
Message 6 of 8
(4,394 Views)
Message 7 of 8
(4,395 Views)
Thank you David, that basically hit the nail on the head...
 
Cheers mate!
0 Kudos
Message 8 of 8
(4,383 Views)