photons.equipment.oscilloscope_rigol module
An oscilloscope from Rigol.
- class photons.equipment.oscilloscope_rigol.RigolOscilloscope(record, **kwargs)[source]
Bases:
OscilloscopeAn oscilloscope from Rigol.
Base class for an oscilloscope.
- Parameters:
record (
EquipmentRecord) – The equipment record.**kwargs – Keyword arguments. Can be specified as attributes of an XML element in a configuration file (with the tag of the element equal to the alias of record).
- configure_channel(channel, *, bw_limit=False, coupling='DC', enable=True, invert=False, offset=0, probe=1, scale=1)[source]
Configure a channel.
- Parameters:
channel (
int) – The channel number.bw_limit (
bool) – Whether to enable or disable the bandwidth limit.coupling (
Literal['DC','AC','GND']) – The coupling mode (either DC, AC or GND).enable (
bool) – Whether to enable or disable the channel.invert (
bool) – Whether to invert the waveform.offset (
float) – The vertical offset [Volts].probe (
float) – The probe ratio. Only discrete values are allowed (see manual).scale (
float) – The vertical scale [Volts/div].
- Return type:
- configure_trigger(*, channel=1, coupling='DC', holdoff=1.6e-08, level=0, noise_reject=True, slope='POS', sweep='AUTO')[source]
Configure the Edge trigger.
- Parameters:
channel (
int|str) – The channel to use as the trigger source.coupling (
Literal['AC','DC','LFReject','HFReject']) – The trigger coupling type (either AC, DC, LFReject or HFReject).holdoff (
float) – The trigger holdoff time [seconds].level (
float) – The voltage level to trigger at.noise_reject (
bool) – Whether to enable or disable noise rejection.slope (
Literal['POS','NEG','RFAL']) – The slope edge to trigger on (either POS, NEG or RFAL).sweep (
Literal['AUTO','NORMAL','SINGLE']) – The sweep mode (either AUTO, NORMAL or SINGLE).
- Return type: