LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting IEEE 754 32 bit floating point numbers to readable values.

Solved!
Go to solution

Hi, I am reading data from a keysight N1912A power meter. If I read a single point it is in ASCII, no problem. But when I try to get the full trace it returns it in IEEE 754 32 bit floating format (binary). Now I need to convert the binary data to readable data so I can read the peak, Calculate the rise time, fall time, flatness, etc.... What is the C/CVI command to do so? I keep looking at sprintf and ssprintf but cannot seem to get it right.... Thanks. Every single instruement I have ever used sent data back in ASCII format and I just parse out the data with strtok, but not this guy.... Very Frustrating indeed. Thanks for the Help.

 

Here is the manual, see page 642 (printed 612 at bottom of page) if you need to know the read trace command to the unit. Am using viRead to get the data back. The data header is there and looks correct and if I look into the data with the eyeglasses I can see it is all there...

0 Kudos
Message 1 of 3
(4,894 Views)
Solution
Accepted by topic author Br0ce77

Hi,

 

did you see (and try) this reply of Roberto?

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

Works perfectly thanks so much for pointing me in the right direction.

0 Kudos
Message 3 of 3
(4,864 Views)