HP-33120: Remote control and copying of arbitrary waveform.

The goods

Description

The Hewlett-Packard 33120a (or Agilent 33120A) function generator can be controlled by GPIB (IEEE-488). Arbitrary waveforms described by anything from 8 to 16000 12-bit values can be sent to the instrument, to be used instead of the simple sine, square etc. functions or the few other built-in waveforms such as exponentials and sinc.

funcgen front-panel

The above scripts provide an introduction to the use of the HP33120 through the GPIB interface, using the Matlab Instrument Control Toolbox. The main thing that wasn't just a matter of following the manual was getting the binary writes of waveform data. The data must immediately follow the header, but use of two write calls, first for the header text then for the 16bit integers (containing just 12bit levels), seems to mess this up: presumably an assertion of `that's all finished' after the header write causes the trouble; it was therefore necessary to convert all the data to bytes then write these in one go.


[an error occurred while processing this directive] Page started: 2010-02-17
Last change: 2015-07-14