From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary string to number

Solved!
Go to solution

Hi,

 

I would like to transform a binary string of the form : "000011" to a numeric value (here 3).

I tried to use Byte Array To String and then use Decimal String To Number but I gives me 0 all the time

Thanks

0 Kudos
Message 1 of 2
(2,911 Views)
Solution
Accepted by topic author vlanico

Use a Scan From String function with %b as the format string.

Message 2 of 2
(2,908 Views)