LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sending floats over uart

I have a custom board with a uart connect to a PC and labview.  The board is generating 32 bit single precision floating point data.  I would like to send the 32 bits of the floating point numbers as bytes and reconstruct them into a single precision floating point number in labview.  Labview does have a concatenate byte\word vi but the result is just a 16bit integer.  I don't know how to tell labview to represent my final 32 bits of data as a float. 

 

In C i could regroup my 4 bytes and then make a float* that pointed to the low address byte.

 

Any help on this would be greatly appreciated. 

0 Kudos
Message 1 of 3
(3,070 Views)

You would use the Typecast function to convert to SGL.

 

Message 2 of 3
(3,064 Views)

thanks a bunch!!

0 Kudos
Message 3 of 3
(3,020 Views)