LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

12 bit binary to floating point

Hello ,

 

I am having a 12 bit boolean array (tru/false)  as input and the final output desired is a double precison floating point .Can anyone help ..

I am meanwhile converting booelan array to number but this just gives the regular integer value .. for eg 

111111111111 ---> 4095 ---> 5.00

 

so my final vaslue should be 5.00 but i am unable to figure out how to ??any suggesstions?

 

Thanks

 

0 Kudos
Message 1 of 3
(4,231 Views)

A double-precision value is 64 bits. Which of those bits correspond to the 12 in your array? How do you know that 4095=>5.0? If you can define the meaning of the 12-bit value, then we can explain how to convert it to an equivalent 64-bit, floating point value.

0 Kudos
Message 2 of 3
(4,220 Views)

Divide the integer with 4095 and multiply by 5.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(4,210 Views)