LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help; trying to convert IEEE floating point to real number

I'm reading real numbers (floating point) from a PLC. These numbers are stored using the IEEE floating point standard in the PLC. In Labview, the real numbers are represented as two 16 bits integer.
Is there a vi or function available to extract the exponant and mantissa from that 32 bit number and generate a floating point number?

Michel.
0 Kudos
Message 1 of 5
(3,007 Views)
Check out this example.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBCC2111EE034080020E74861&p_node=DZ53046&p_source=External

Regards,
Ryan K.
0 Kudos
Message 2 of 5
(3,001 Views)
The "Join Numbers" and "Typecast" primitives (in Functions>Advanced>Data Manipulation) should do the job easily.
Depending on the PLC, you might have to swap words ... or bytes in words.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 4 of 5
(2,984 Views)
Thanks a lot RyanK.

That does exactly what I need.

Cheers,
Michel
0 Kudos
Message 5 of 5
(2,973 Views)