Agilent 33220A Arbitrary Waveform Generator

class pymeasure.instruments.agilent.Agilent33220A(adapter, name='Agilent 33220A Arbitrary Waveform generator', **kwargs)

Bases: SCPIUnknownMixin, Instrument

Represents the Agilent 33220A Arbitrary Waveform Generator.

# Default channel for the Agilent 33220A
wfg = Agilent33220A("GPIB::10")

wfg.shape = "SINUSOID"          # Sets a sine waveform
wfg.frequency = 4.7e3           # Sets the frequency to 4.7 kHz
wfg.amplitude = 1               # Set amplitude of 1 V
wfg.offset = 0                  # Set the amplitude to 0 V

wfg.burst_state = True          # Enable burst mode
wfg.burst_ncycles = 10          # A burst will consist of 10 cycles
wfg.burst_mode = "TRIGGERED"    # A burst will be applied on a trigger
wfg.trigger_source = "BUS"      # A burst will be triggered on TRG*

wfg.output = True               # Enable output of waveform generator
wfg.trigger()                   # Trigger a burst
wfg.wait_for_trigger()          # Wait until the triggering is finished
wfg.beep()                      # "beep"

print(wfg.check_errors())       # Get the error queue
property amplitude: Any

Control the amplitude of the output waveform. Depending on amplitude unit, the unit is Volt (peak-to-peak), Volt (RMS) or dBm. The limits depend on the configured output termination (50 Ohm to High Impedance changes by a factor of 2) and the offset. Supplying out-of-bound values may silently be clipped by the device (float, in V or dBm)

property amplitude_unit: Any

Control the units of the amplitude (string, strict from VPP, VRMS, DBM).

beep()

Causes a system beep.

property beeper_state: Any

Control the state of the beeper (bool).

property burst_mode: Any

Control the burst mode (string, strict from TRIG, TRIGGERED, GAT, GATED).

property burst_ncycles: Any

Control the number of cycles to be output when a burst is triggered (int, strict from 1 to 50000).

property burst_state: Any

Control whether the burst mode is on (bool).

property frequency: Any

Control the frequency of the output waveform. Depending on the output shape, the supported frequency range changes. Supplying out-of-bound values may silently be clipped by the device (float, in Hz)

property offset: Any

Control the voltage offset of the output waveform. This is limited by the amplitude and output termination. Supplying out-of-bound values may silently be clipped by the device. (float, in V)

property output: Any

Control the output of the function generator (bool).

property pulse_dutycycle: Any

Control the duty cycle of a pulse waveform function in percent (float, strict from 0 to 100).

property pulse_hold: Any

Control if either the pulse width or the duty cycle is retained when changing the period or frequency of the waveform (string, strict from WIDT, WIDTH, DCYC, DCYCLE).

property pulse_period: Any

Control the period of a pulse waveform function in seconds (float, strict from 200e-9 to 2e3). The period overwrites the frequency for all waveforms. If the period is shorter than the pulse width + the edge time, the edge time and pulse width will be adjusted accordingly.

property pulse_transition: Any

Control the edge time in seconds for both the rising and falling edges. It is defined as the time between 0.1 and 0.9 of the threshold. Valid values are between 5 ns to 100 ns. The transition time has to be smaller than 0.625 * the pulse width.

property pulse_width: Any

Control the width of a pulse waveform function in seconds (float, strict from 20e-9 to 2e3).

property ramp_symmetry: Any

Control the symmetry percentage for the ramp waveform (float, strict from 0 to 100).

property remote_local_state: Any

Set the remote/local state of the function generator (string, strict from LOC, LOCAL, REM, REMOTE, RWL, RWLOCK).

property shape: Any

Control the output waveform (string, strict from SINUSOID, SIN, SQUARE, SQU, RAMP, PULSE, PULS, NOISE, NOIS, DC, USER).

property square_dutycycle: Any

Control the duty cycle of a square waveform function (float, strict from 20 to 80).

trigger()

Send a trigger signal to the function generator.

property trigger_source: Any

Control the trigger source (string, strict from IMM, IMMEDIATE, EXT, EXTERNAL, BUS).

property trigger_state: Any

Control whether the output is triggered (bool).

property voltage_high: Any

Control the upper voltage of the output waveform. The limits depend on the output termination. Supplying out-of-bound values may silently be clipped by the device. (float, in V)

property voltage_low: Any

Control the lower voltage of the output waveform. The limits depend on the output termination. Supplying out-of-bound values may silently be clipped by the device. (float, in V)

wait_for_trigger(timeout=3600, should_stop=<function Agilent33220A.<lambda>>)

Wait until the triggering has finished or timeout is reached.

Parameters:
  • timeout – The maximum time the waiting is allowed to take. If timeout is exceeded, a TimeoutError is raised. If timeout is set to zero, no timeout will be used. (default: 3600)

  • should_stop – Optional function (returning a bool) to allow the waiting to be stopped before its end. (default: <function Agilent33220A.<lambda> at 0x76f1fd0220c0>)