NAME
GPIB::hp3585a - Perl-GPIB module for HP3585A Spectrum Analyser
SYNOPSIS
use GPIB::hp3585a;
$g = GPIB:hp3585a->new("name");
@caption = $g->getCaption;
@display = $g->getDisplay;
DESCRIPTION
Driver for HP8535A spectrum analyser. getCaption() returns an array of 8 strings containing the current text on the display of the instrument. getDisplay() returns an array of 1002 values representing the display points of the A trace of the instrument. The first point is invalid (this is the way the instrument returns the data). The values are in the range 0..1023. The higher order bits contain some extra information like whether there is a marker at the location. See the HP3585A manual for more detailed information. In general, mask off everything but the lower 10-bits of each element to get a nice plot.
There's a lot more work to do on this module...
CONFIGURATION
A typical /etc/pgpib.conf entry is shown below. The HP3585A defaults to primary address 11 unless you get out a screw driver and open up the big beast. Also note that a 1 second timeout may not be enough for this device. It seems to stall any GPIB access while doing a configuration cycle.
This device does not assert EOI or send an EOS character at the end of transmissions. This means that you must know the exact number of bytes to read. This is the reason the caption code reads precisely 174 bytes. It's a pain, but reasonable seeing as this instrument was designed in the 70's.
# name Board PAD SAD TMO EOT EOS
HP3585A GPIB::ni 0 11 0 T1s 1 0
AUTHOR
Jeff Mock jeff@mock.com
SEE ALSO
GPIB(3), perl(1).