Keysight33521B#
- class Keysight33521B(
- visa_resource: str | VisaConfig,
Bases:
AWGDriverBaseSCPI driver for the Keysight 33521B arbitrary waveform generator.
Methods
Sync the phase of all channels.
Enable or disable burst mode on the given channel.
Close the underlying transport.
Fire a burst trigger on channel now; the trigger source must already be MANUAL.
Fire a sweep trigger on channel now; the trigger source must already be MANUAL.
Get the current output amplitude and voltage unit on channel.
Get the burst trigger delay (seconds) on channel.
Get the gate polarity for GATED bursts on channel.
Get the number of cycles per trigger for NCYCLE bursts on channel.
Get the internal burst period (seconds) on channel.
Return True if burst mode is enabled on channel.
Get the burst trigger source on channel.
NCYCLE reads back as INFINITE when BURS:NCYC is the hardware's high-water sentinel for INF.
Get the modulation enabled state currently active on channel.
Returns modulation type currently enabled, or the last type set by the user when modulation is not enabled.
Get the DC offset (volts) on channel.
Get the output load impedance; None means high-Z.
Return True if the output on channel is enabled.
Get the sweep end frequency (Hz) on channel.
Get the sweep return time (seconds) on channel.
Get the sweep start frequency (Hz) on channel.
Get the sweep start hold time (seconds) on channel.
Return True if sweep mode is enabled on channel.
Get the sweep stop hold time (seconds) on channel.
Get the sweep time (seconds) on channel.
Get the sweep trigger source on channel.
Get the sweep type currently configured on channel.
Get the current waveform on channel.
Enables the most recently configured modulation type, or disables modulation.
Open the underlying transport.
Enable or disable the output on channel.
Set the output amplitude on channel.
Configure channel's burst type.
Set the burst trigger delay (seconds) on channel.
Set the gate polarity for GATED bursts on channel.
Set the number of cycles per trigger for NCYCLE bursts on channel.
Set the internal burst period (seconds) on channel.
Set the burst trigger source on channel.
Configures modulation.
Set the DC offset (volts) on channel.
Set the output load impedance; None means high-Z.
Configure the sweep type on channel.
Set the sweep end frequency (Hz) on channel.
Set the sweep return time (seconds) on channel.
Set the sweep start frequency (Hz) on channel.
Set the sweep start hold time (seconds) on channel.
The 33521B has no SWEep:HTIMe:STARt; HTIMe only holds at the stop frequency.
Set the sweep time (seconds) on channel.
Set the sweep trigger source on channel.
Program channel with the waveform definition.
Enable or disable sweep mode on channel.
- get_waveform(
- channel: int,
Get the current waveform on channel.
- set_amplitude(
- channel: int,
- amplitude: float,
- unit: AmplitudeMeasurementUnit,
Set the output amplitude on channel.
- get_amplitude(
- channel: int,
Get the current output amplitude and voltage unit on channel.
- 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.
- set_modulation(
- channel: int,
- mod_type: ModulationType,
- shape: Sine | Square | Sawtooth | Triangle | Pulse | Arbitrary | StaticValue,
- magnitude: float,
Configures modulation. Enabled state is persistent across set_modulation calls.
- modulation_enable(channel: int, enable: bool) None[source]#
Enables the most recently configured modulation type, or disables modulation.
- get_modulation_type(
- channel: int,
Returns modulation type currently enabled, or the last type set by the user when modulation is not enabled.
- get_modulation_state(channel: int) bool[source]#
Get the modulation enabled state currently active on channel.
- get_burst_type(
- channel: int,
NCYCLE reads back as INFINITE when BURS:NCYC is the hardware’s high-water sentinel for INF.
- burst_enable(channel: int, enable: bool) None[source]#
Enable or disable burst mode on the given channel.
- set_burst_trigger(
- channel: int,
- source: BurstTriggerSource,
Set the burst trigger source on channel.
- get_burst_trigger(
- channel: int,
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.
- set_burst_gate_polarity(
- channel: int,
- gate_polarity: GatePolarity,
Set the gate polarity for GATED bursts on channel.
- get_burst_gate_polarity(
- channel: int,
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_sweep_type(
- channel: int,
Get the sweep type currently configured on channel.
- set_sweep_trigger(
- channel: int,
- source: SweepTriggerSource,
Set the sweep trigger source on channel.
- get_sweep_trigger(
- channel: int,
Get the sweep trigger source on channel.
- set_sweep_time(channel: int, sweep_time: float) None[source]#
Set the sweep time (seconds) on channel.
- set_sweep_stop_hold_time( ) None[source]#
The 33521B has no SWEep:HTIMe:STARt; HTIMe only holds at the stop frequency.
- get_sweep_stop_hold_time(channel: int) float[source]#
Get the sweep stop hold time (seconds) on channel.