RigolDG1022Z#

class RigolDG1022Z(
visa_resource: str | VisaConfig,
)[source]#

Bases: AWGDriverBase

SCPI driver for the Rigol DG1022Z two-channel arbitrary waveform generator.

Methods

align_phase

Sync the phase of all channels.

burst_enable

Enable or disable burst mode on the given channel.

close

Close the underlying transport.

fire_burst_trigger

Fire a burst trigger on channel now; the trigger source must already be MANUAL.

fire_sweep_trigger

Fire a sweep trigger on channel now; the trigger source must already be MANUAL.

get_amplitude

Get the current output amplitude and voltage unit on channel.

get_burst_delay

Get the burst trigger delay (seconds) on channel.

get_burst_gate_polarity

Get the gate polarity for GATED bursts on channel.

get_burst_ncycles

Get the number of cycles per trigger for NCYCLE bursts on channel.

get_burst_period

Get the internal burst period (seconds) on channel.

get_burst_state

Return True if burst mode is enabled on channel.

get_burst_trigger

Get the burst trigger source on channel.

get_burst_type

Get the burst type currently active on channel.

get_modulation_state

Get the modulation enabled state currently active on channel.

get_modulation_type

Get the modulation type currently active on channel.

get_offset

Get the DC offset (volts) on channel.

get_output_load

Get the output load impedance; None means high-Z.

get_output_state

Return True if the output on channel is enabled.

get_sweep_end_freq

Get the sweep end frequency (Hz) on channel.

get_sweep_return_time

Get the sweep return time (seconds) on channel.

get_sweep_start_freq

Get the sweep start frequency (Hz) on channel.

get_sweep_start_hold_time

Get the sweep start hold time (seconds) on channel.

get_sweep_state

Return True if sweep mode is enabled on channel.

get_sweep_stop_hold_time

Get the sweep stop hold time (seconds) on channel.

get_sweep_time

Get the sweep time (seconds) on channel.

get_sweep_trigger

Get the sweep trigger source on channel.

get_sweep_type

Get the sweep type currently configured on channel.

get_waveform

Get the current waveform on channel.

modulation_enable

Enable or disable modulation on the given channel.

open

Open the underlying transport.

output_enable

Enable or disable the output on channel.

set_amplitude

Set the output amplitude on channel.

set_burst

Configure channel's burst type.

set_burst_delay

Set the burst trigger delay (seconds) on channel.

set_burst_gate_polarity

Set the gate polarity for GATED bursts on channel.

set_burst_ncycles

Set the number of cycles per trigger for NCYCLE bursts on channel.

set_burst_period

Set the internal burst period (seconds) on channel.

set_burst_trigger

Set the burst trigger source on channel.

set_modulation

Configure channel's carrier modulation with modulator shape.

set_offset

Set the DC offset (volts) on channel.

set_output_load

Set the output load impedance; None means high-Z.

set_sweep

Configure the sweep type on channel.

set_sweep_end_freq

Set the sweep end frequency (Hz) on channel.

set_sweep_return_time

Set the sweep return time (seconds) on channel.

set_sweep_start_freq

Set the sweep start frequency (Hz) on channel.

set_sweep_start_hold_time

Set the sweep start hold time (seconds) on channel.

set_sweep_stop_hold_time

Set the sweep stop hold time (seconds) on channel.

set_sweep_time

Set the sweep time (seconds) on channel.

set_sweep_trigger

Set the sweep trigger source on channel.

set_waveform

Program channel with the waveform definition.

sweep_enable

Enable or disable sweep mode on channel.

open() → None[source]#

Open the underlying transport.

close() → None[source]#

Close the underlying transport.

set_waveform(
channel: int,
waveform: Sine | Square | Sawtooth | Triangle | Pulse | Arbitrary | StaticValue,
) → None[source]#

Program channel with the waveform definition.

get_waveform(
channel: int,
) → Sine | Square | Sawtooth | Triangle | Pulse | Arbitrary | StaticValue[source]#

Get the current waveform on channel.

set_amplitude(
channel: int,
amplitude: float,
unit: AmplitudeMeasurementUnit,
) → None[source]#

Set the output amplitude on channel.

get_amplitude(
channel: int,
) → tuple[float, AmplitudeMeasurementUnit][source]#

Get the current output amplitude and voltage unit on channel.

set_offset(channel: int, offset: float) → None[source]#

Set the DC offset (volts) on channel.

get_offset(channel: int) → float[source]#

Get the DC offset (volts) on channel.

output_enable(channel: int, enable: bool) → None[source]#

Enable or disable the output on channel.

get_output_state(channel: int) → bool[source]#

Return True if the output on channel is enabled.

set_output_load(channel: int, load: float | None) → None[source]#

Set the output load impedance; None means high-Z.

get_output_load(channel: int) → float | None[source]#

Get the output load impedance; None means high-Z.

align_phase() → None[source]#

Sync the phase of all channels.

set_modulation(
channel: int,
mod_type: ModulationType,
shape: Sine | Square | Sawtooth | Triangle | Pulse | Arbitrary | StaticValue,
magnitude: float,
) → None[source]#

Configure channel’s carrier modulation with modulator shape.

modulation_enable(channel: int, enable: bool) → None[source]#

Enable or disable modulation on the given channel.

get_modulation_type(
channel: int,
) → ModulationType[source]#

Get the modulation type currently active on channel.

get_modulation_state(channel: int) → bool[source]#

Get the modulation enabled state currently active on channel.

set_burst(
channel: int,
burst_type: BurstType,
) → None[source]#

Configure channel’s burst type.

get_burst_type(channel: int) → BurstType[source]#

Get the burst type currently active on channel.

burst_enable(channel: int, enable: bool) → None[source]#

Enable or disable burst mode on the given channel.

get_burst_state(channel: int) → bool[source]#

Return True if burst mode is enabled on channel.

set_burst_trigger(
channel: int,
source: BurstTriggerSource,
) → None[source]#

Set the burst trigger source on channel.

get_burst_trigger(
channel: int,
) → BurstTriggerSource[source]#

Get the burst trigger source on channel.

fire_burst_trigger(channel: int) → None[source]#

Fire a burst trigger on channel now; the trigger source must already be MANUAL.

set_burst_delay(channel: int, delay_s: float) → None[source]#

Set the burst trigger delay (seconds) on channel.

get_burst_delay(channel: int) → float[source]#

Get the burst trigger delay (seconds) on channel.

set_burst_gate_polarity(
channel: int,
gate_polarity: GatePolarity,
) → None[source]#

Set the gate polarity for GATED bursts on channel.

get_burst_gate_polarity(
channel: int,
) → GatePolarity[source]#

Get the gate polarity for GATED bursts on channel.

set_burst_ncycles(channel: int, n_cycles: int) → None[source]#

Set the number of cycles per trigger for NCYCLE bursts on channel.

get_burst_ncycles(channel: int) → int[source]#

Get the number of cycles per trigger for NCYCLE bursts on channel.

set_burst_period(channel: int, period: float) → None[source]#

Set the internal burst period (seconds) on channel.

get_burst_period(channel: int) → float[source]#

Get the internal burst period (seconds) on channel.

set_sweep(
channel: int,
sweep_type: SweepType,
) → None[source]#

Configure the sweep type on channel.

get_sweep_type(channel: int) → SweepType[source]#

Get the sweep type currently configured on channel.

sweep_enable(channel: int, enable: bool) → None[source]#

Enable or disable sweep mode on channel.

get_sweep_state(channel: int) → bool[source]#

Return True if sweep mode is enabled on channel.

set_sweep_trigger(
channel: int,
source: SweepTriggerSource,
) → None[source]#

Set the sweep trigger source on channel.

get_sweep_trigger(
channel: int,
) → SweepTriggerSource[source]#

Get the sweep trigger source on channel.

set_sweep_start_freq(
channel: int,
frequency_hz: float,
) → None[source]#

Set the sweep start frequency (Hz) on channel.

get_sweep_start_freq(channel: int) → float[source]#

Get the sweep start frequency (Hz) on channel.

set_sweep_end_freq(
channel: int,
frequency_hz: float,
) → None[source]#

Set the sweep end frequency (Hz) on channel.

get_sweep_end_freq(channel: int) → float[source]#

Get the sweep end frequency (Hz) on channel.

set_sweep_time(channel: int, sweep_time: float) → None[source]#

Set the sweep time (seconds) on channel.

get_sweep_time(channel: int) → float[source]#

Get the sweep time (seconds) on channel.

set_sweep_stop_hold_time(
channel: int,
hold_time: float,
) → None[source]#

Set the sweep stop hold time (seconds) on channel.

get_sweep_stop_hold_time(channel: int) → float[source]#

Get the sweep stop hold time (seconds) on channel.

set_sweep_start_hold_time(
channel: int,
hold_time: float,
) → None[source]#

Set the sweep start hold time (seconds) on channel.

get_sweep_start_hold_time(channel: int) → float[source]#

Get the sweep start hold time (seconds) on channel.

set_sweep_return_time(
channel: int,
return_time: float,
) → None[source]#

Set the sweep return time (seconds) on channel.

get_sweep_return_time(channel: int) → float[source]#

Get the sweep return time (seconds) on channel.

fire_sweep_trigger(channel: int) → None[source]#

Fire a sweep trigger on channel now; the trigger source must already be MANUAL.