From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Conversion Decimal Number to 32 bit floating point

In order to write to a register in a digital camera, I need to do a conversion from a decimal number to the IEEE-754 single precision 32-bit representation of this number (and also the other way around).

Does there exist a vi, which does that? Or maybe a Matlab routine?
0 Kudos
Message 1 of 6
(4,345 Views)
Yes, Mantissa & Exponent vi.
0 Kudos
Message 2 of 6
(4,331 Views)
That is not what I'm looking for. I do not need to know how the number is written in binary notation (which is what mantiss and exponent basically does) but how it is written as a 32-bit floating point number.
0 Kudos
Message 3 of 6
(4,324 Views)
"Decimal String To Number" vi
or
"To Single Precision Float" vi ?
0 Kudos
Message 4 of 6
(4,321 Views)
This should do it...

Randy
Message 5 of 6
(4,306 Views)
Yes!
This works, if you set "Type" to "09" for single and for the output you select a number in I32 binary reprensentation.

Thanks a lot.

Dominik
0 Kudos
Message 6 of 6
(4,290 Views)