dso_awg module
- class dso_awg.Awg(parent)
Bases:
objectThis module can control the AWG function on your DSO
- set_awg_parameters(ch: int = 1, wave: str | None = None, freq: float | None = None, amp: float | None = None, offset: float | None = None, enable: bool | None = None) None
Sets various parameters for AWG.
- Parameters:
ch (int, optional) – AWG Channel number (1 or 2). Defaults to 1.
wave (str, optional) – ARBitrary | SINE | SQUAre | PULSe | RAMP | DC | NOISe | SINC | GAUSsian | LORENtz | EXPRise | EXPFall | HAVERSINe | CARDIac.
freq (float, optional) – waveform frequency.
amp (float, optional) – waveform amplitude.
offset (float, optional) – waveform offset.
enable (bool, optional) – If True, sets AWG output ON. If False, sets AWG output OFF.
- set_load_50ohm(ch: int = 1)
Set load to 50 ohm
- Parameters:
ch (int, optional) – AWG Channel number (1 or 2). Defaults to 1.
- set_load_highz(ch: int = 1)
Set load to HighZ
- Parameters:
ch (int, optional) – AWG Channel number (1 or 2). Defaults to 1.
- set_off(ch: int = 1)
Set AWG OFF
- Parameters:
ch (int, optional) – AWG Channel number (1 or 2). Defaults to 1.
- set_on(ch: int = 1, wave: str | None = None, freq: float | None = None, amp: float | None = None, offset: float | None = None)
Set AWG ON
- Parameters:
ch (int, optional) – AWG Channel number (1 or 2). Defaults to 1.
wave (str, optional) – ARBitrary | SINE | SQUAre | PULSe | RAMP | DC | NOISe | SINC | GAUSsian | LORENtz | EXPRise | EXPFall | HAVERSINe | CARDIac. Defaults to None is do not change.
freq (float, optional) – waveform frequency. Defaults to None is do not change.
amp (float, optional) – waveform amplitude. Defaults to None is do not change.
offset (float, optional) – waveform offset. Defaults to None is do not change.