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
(6,379 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
(6,376 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.

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Download All
Message 3 of 4
(6,346 Views)

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

0 Kudos
Message 4 of 4
(2,938 Views)