LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert binary number to binary string

Hi,

I'm currently using I32 number cell that contains 17 bits. 16 bits of data
and 1 spacing bit. the format is like this:
" 1 + 0000000000000000"
space bit 16 data bits

This is a numerical field which is formatted to display data in binary
format. I would like to convert the 16 bit data into a string that displays
the values in a binary format and not decimal format. How would i do this?
When i use " Decimal number to string", i get the (obviously) the decimal
format instead of binary. Is there a quick way to do this or will I need to
write a converter?

Thanks,

Regis
0 Kudos
Message 1 of 2
(6,598 Views)
There is a quick way. Use the "Format into String" function. See the example attached. Basically, the key is to know that "%b" is the format specifier for binary number to string.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
Message 2 of 2
(6,597 Views)