R3131 Spectrum Analyzer Operation Manual
4.1 GPIB Remote Programming
(2) Sample Programs for HP200 and HP300 series (GPIB address = 1)
Example HP-1: Master reset the device and set center frequency to 30 MHz.
10 OUTPUT 701;"IP"
20 OUTPUT 701;"CF3OMZ"
30 END
Example HP-2: Set reference level to -20 dBm (5 dB/div), resolution bandwidth to 100 kHz and
detector mode to Posi.
10 OUTPUT 701;"RL-20DB"
20 OUTPUT 701;"DD5DB"
30 OUTPUT 701;"RB lama"
40 OUTPUT 701;"DTP"
50 END
Example HP-3: Set trigger mode to SINGLE and sweep time to 2 seconds, and position a marker
at the maximum level for each sweep.
10 OUTPUT 701;"SI"
20 OUTPUT 701;"SW2SC"
30 OUTPUT 701;"SR" Start sweep.
40 WAIT 2.5 Wait for sweep end (or use service request).
50 OUTPUT 701;"PS" Marker peak search
60 GOTO 30
70 STOP
80 END
Example HP-4: Set to MAX HOLD (A)
OUTPUT 701;"AM" ! Set to DIRECT.
Example HP-5: Accessing the files.
OUTPUT 70I;"RC5"
OUTPUT 701;"RC/FD:FILEOLDATr
! Recall the register 5.
! Recall values from the card.
NOTE: The same format is used to access files with RC, DEL, SV commands.
4-32