64 bits float to 32 bits hex number

A

Thread Starter

Alejandro

Somebody told me that it is better to input hex format values than float (decimal) into a DSP. Then I'm looking for algorithm in order to convert from float to 32 bits hex format.
 
R

Ranjit Nambiar

Hi,

You can do this very easily with LabVIEW. Once your bytes are assembled in the right order, you have to tell LV that the assembly IS a single float. This is a process different from converting to a single float! Use the "Type Cast" function in the "Advanced/Data manipulation" subpalette. Wire a Single float constant to the center connector, and that should do the trick. Are you communicating on a serial bus??
 
Top