Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication via GPIB with HP54120B

In my theses I handle with a HP54120B and on old PC with GPIB interface. The problem is that when I ask the instrument the waveform (":wav:data?") and it writes on the buffer a string of binary numbers. The problem is that I have no idea on how transform it on the information I want (I tried to directly transform it into the decimal base but without success).

I also have problems on getting the numbers from the buffer. I'm able to pick up just the first one.

Thanks

0 Kudos
Message 1 of 6
(4,032 Views)
Agilents manual list for that scope includes  a  "Programmer's guide for Quick C and Quick Basic" .  This manual includes some example code for transfering data from the scope to a PC . You will find that manual at http://cp.literature.agilent.com/litweb/pdf/5090-4457.pdf
0 Kudos
Message 2 of 6
(4,013 Views)
Thank you Markus

But I think you didn't undestand my question. I already read the programming manual (from the bottom to the top) and I know the instructions on how to tranfer data from the instrument to the PC. My problem is that the data I receive is in binary and I don't know how to convert it.

Furthermore I wasn't able to pick all the numbers from the buffer, just the first one.

Thanks
0 Kudos
Message 3 of 6
(4,006 Views)
Thank you Markus

But I think you didn't undestand my question. I already read the programming manual (from the bottom to the top) and I know the instructions on how to tranfer data from the instrument to the PC. My problem is that the data I receive is in binary and I don't know how to convert it.

Furthermore I wasn't able to pick all the numbers from the buffer, just the first one.

Thanks
0 Kudos
Message 4 of 6
(4,005 Views)
The data format is described at page 53 of that manual and there is a sample how to convert the data to volt/time pairs on the following pages
0 Kudos
Message 5 of 6
(4,003 Views)
Problem solved

Thank you very much
0 Kudos
Message 6 of 6
(3,990 Views)