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
A floating point property that controls the voltage amplitude of the output waveform in V, from 10e-3 V to 10 V. Can be set.
- property amplitude_unit
A string property that controls the units of the amplitude. Valid values are Vpp (default), Vrms, and dBm. Can be set.
- beep()
Causes a system beep.
- property beeper_state
A boolean property that controls the state of the beeper. Can be set.
- property burst_mode
A string property that controls the burst mode. Valid values are: TRIG<GERED>, GAT<ED>. This setting can be set.
- property burst_ncycles
An integer property that sets the number of cycles to be output when a burst is triggered. Valid values are 1 to 50000. This can be set.
- property burst_state
A boolean property that controls whether the burst mode is on (True) or off (False). Can be set.
- property frequency
A floating point property that controls the frequency of the output waveform in Hz, from 1e-6 (1 uHz) to 20e+6 (20 MHz), depending on the specified function. Can be set.
- property offset
A floating point property that controls the voltage offset of the output waveform in V, from 0 V to 4.995 V, depending on the set voltage amplitude (maximum offset = (10 - voltage) / 2). Can be set.
- property output
A boolean property that turns on (True) or off (False) the output of the function generator. Can be set.
- property pulse_dutycycle
A floating point property that controls the duty cycle of a pulse waveform function in percent. Can be set.
- property pulse_hold
A string property that controls if either the pulse width or the duty cycle is retained when changing the period or frequency of the waveform. Can be set to: WIDT<H> or DCYC<LE>.
- property pulse_period
A floating point property that controls the period of a pulse waveform function in seconds, ranging from 200 ns to 2000 s. Can be set and 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
A floating point property that controls 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. Can be set.
- property pulse_width
A floating point property that controls the width of a pulse waveform function in seconds, ranging from 20 ns to 2000 s, within a set of restrictions depending on the period. Can be set.
- property ramp_symmetry
A floating point property that controls the symmetry percentage for the ramp waveform. Can be set.
- property remote_local_state
A string property that controls the remote/local state of the function generator. Valid values are: LOC<AL>, REM<OTE>, RWL<OCK>. This setting can only be set.
- property shape
A string property that controls the output waveform. Can be set to: SIN<USOID>, SQU<ARE>, RAMP, PULS<E>, NOIS<E>, DC, USER.
- property square_dutycycle
A floating point property that controls the duty cycle of a square waveform function in percent. Can be set.
- trigger()
Send a trigger signal to the function generator.
- property trigger_source
A string property that controls the trigger source. Valid values are: IMM<EDIATE> (internal), EXT<ERNAL> (rear input), BUS (via trigger command). This setting can be set.
- property trigger_state
A boolean property that controls whether the output is triggered (True) or not (False). Can be set.
- property voltage_high
A floating point property that controls the upper voltage of the output waveform in V, from -4.990 V to 5 V (must be higher than low voltage). Can be set.
- property voltage_low
A floating point property that controls the lower voltage of the output waveform in V, from -5 V to 4.990 V (must be lower than high voltage). Can be set.
- 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.
should_stop – Optional function (returning a bool) to allow the waiting to be stopped before its end.