LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a BCD to Decimal?

Solved!
Go to solution

Hi,

      I am using a LabVIEW code for Interfacing a channel selection box.In that output am getting is in the format of BCD.I want to convert that BCD to decimal.Can you Plz tell me to convert this BCD to Decimal?

0 Kudos
Message 1 of 4
(7,299 Views)
Just read the value of each nibble . each will =0-9. e.g. 0111 =7

"Should be" isn't "Is" -Jay
Message 2 of 4
(7,296 Views)
Solution
Accepted by topic author $agar

You can use the Boolean operators and the Rotate function to select the hi and low nibbles. Use the In Range and coerce function to limit the range of the nibbles to zero through nine.

 

Download All
Message 3 of 4
(7,266 Views)

Thank you Phillip, this was very helpful and worked great!

0 Kudos
Message 4 of 4
(3,858 Views)