Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

4-Byte IEEE floating number conversion

$
0
0

Hello guys :

 

I've faced a probelm on converting the 4-byte IEEE binaries into floating numbers.

 

I've got the 4-byte binary data from spectrum analyzer SR780 capture buffer.

 

Fig1 Block diagram of  VI "Upload Capture Buffer"

未命名4.png.

The description of "CGET" command in the user mannual of SR780

未命名5.png

The captured data is 100mV 10Hz sine signal. The whole capture length is about 5 seconds.

 

While I've faced a probelm while I convert the 4-byte IEEE floating number into floating numbers.

 

Fig2 Block diagram of  my VI, try to convert 4-Byte binary to floating number

未命名2.png

The main conversion process is learned from the block diagram of another sub VI "Query display data"

(this is one of  the SR780 GPIB driver sub VI) through GPIB interface.

 

Fig3 Block diagram of  VI "Query display data"

未命名3.png

Actually I can already see the periodic behavior of the obtained binary data. The period is 10Hz, too. However I cannot get correct waveform.

 

Fig4 the periodicity of the binary numbers

未命名.png

 

 

 

 

 

 

 

 

 

 

 

I just cannot figure out why I follow the same process while I get the wrong result?

 

The attachments are the binary data files, the string interpretation of them and my VI try to figure it out.

 

I'll appreciate If anyone give any suggestion. 

 

Thank you!


Viewing all articles
Browse latest Browse all 5625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>