HP / Agilent 53131A / 53132A universal counter (hp.53131a)¶
Connection: GPIB (see Connecting instruments), e.g. prologix://COM17/1 through an
AR488. Tried on a real 53131A (firmware 3944) with an FY6900 as the source.
53131A and 53132A: both take the same commands, so one driver serves both.
The 53132A resolves 12 digits in one second instead of 10, and time intervals
to 150 ps instead of 500 ps. It is untested on hardware.
Gate time: frequency, period and ratio use time gating with the gate time
set by set_gate_time or the device setting (0.1 s by default). A longer gate
gives more digits.
Trigger: every measurement starts with :CONFigure, which sets the trigger
level of both channels back to auto and the slope to rising (coupling,
impedance, attenuation and filter stay). The driver sends the level and slope
from set_trigger_level and set_trigger_slope again after it, for
frequency, period, ratio, time interval, phase and totalize. Pulse width, duty
cycle and rise/fall time use the counter's own levels (50 %, 10/90 %).
Auto trigger needs a signal above 100 Hz and 100 mVpp; below 100 Hz set a
trigger level. Totalize never auto-triggers, so set a level before it.
Phase:measure_phase is channel 1 relative to channel 2, positive when
channel 1 leads; one period of channel 2 is 360°.
Rise and fall time need clean edges: on a fast edge that rings, the ringing
crosses the 10 % and 90 % levels, and the result is a pulse width instead.
The peak voltages include the overshoot too.
No signal: a measurement waits for its signal, and the counter then
ignores every other command until a device clear. If no reading arrives within
the gate time plus 2 s, the driver sends a device clear and *CLS (the clear
leaves -230,"Data corrupt or stale" behind) and fails with "no reading on
channel N". The next measurement works normally.
Not a number: the counter's "no valid result" (9.91E37) is returned as NaN.
Measured on the 53131A from an FY6900 (1 MΩ, DC coupled): frequency from
1 kHz to 60 MHz to within 8 ppm (the generator's clock), period, ratio 4.0,
phase 90.02°, time interval 24.98 µs at 10 kHz, duty cycle 0.29999, pulse
widths 300.0 µs and 700.0 µs, rise time 0.399 ms on a triangle, totalize 1000
in 1 s, peaks of a 2 Vpp sine ±1.0 V. Channel 3 without the option fails
with -241,"Hardware missing".
Sources: HP 53131A/132A Programming Guide, part no. 53131-90044 (November
1996); Agilent 53131A/132A Operating Guide, part no. 53131-90055 (October
2006): phase (p. 2-15), auto trigger (pp. 2-44 to 2-45, input specifications
p. 3-2), model differences (p. xvi).