Psrc
SCPI Commands :
PSRC[:STATe]
PSRC:OUTPutlow
PSRC:REPRate
PSRC:DUTYcycle
PSRC:CLOCkmode
- Commands in total: 6Subgroups: 1Direct child commands: 5
- get_clock_mode() ClockMode[source]
# PSRC:CLOCkmode value: enums.ClockMode = driver.psrc.get_clock_mode()
Sets the dependency of the pulse clock on the instrument’s reference clock.
- Returns:
clock_mode: LOCKed | FREerunning
LOCKed: The pulse source is locked to the reference clock of the instrument.
FREerunning: The clock of the pulse source is independent. Deviations of the system do not affect the pulse clock, and deterministic conditions are avoided.
- get_duty_cycle() float[source]
# PSRC:DUTYcycle value: float = driver.psrc.get_duty_cycle()
Sets the duty cycle of the pulse, which is the ratio of the positive pulse width to the period of the signal.
- Returns:
duty_cycle: For repetition rates 5 MHz, the value is fixed at 50 %.
- get_output_low() float[source]
# PSRC:OUTPutlow value: float = driver.psrc.get_output_low()
Sets the low level of the output pulse.
- Returns:
output_low_level: -0.2 to -0.05
- get_rep_rate() float[source]
# PSRC:REPRate value: float = driver.psrc.get_rep_rate()
Sets the pulse frequency, the repetition rate of the pulse.
- Returns:
repetition_rate: Available values depend on the selected clock mode: Locked: 5/10/20/50/100/200/500 Hz, 1/5/10/25/50/100/250 MHz Free running: 5/10/20/50/100/200/500 Hz, 1/5/10/25/50 MHz
- get_state() bool[source]
# PSRC[:STATe] value: bool = driver.psrc.get_state()
Switches the pulse output on and off.
- Returns:
state: OFF | ON
- set_clock_mode(clock_mode: ClockMode) None[source]
# PSRC:CLOCkmode driver.psrc.set_clock_mode(clock_mode = enums.ClockMode.FREerunning)
Sets the dependency of the pulse clock on the instrument’s reference clock.
- Parameters:
clock_mode –
LOCKed | FREerunning
LOCKed: The pulse source is locked to the reference clock of the instrument.
FREerunning: The clock of the pulse source is independent. Deviations of the system do not affect the pulse clock, and deterministic conditions are avoided.
- set_duty_cycle(duty_cycle: float) None[source]
# PSRC:DUTYcycle driver.psrc.set_duty_cycle(duty_cycle = 1.0)
Sets the duty cycle of the pulse, which is the ratio of the positive pulse width to the period of the signal.
- Parameters:
duty_cycle – For repetition rates 5 MHz, the value is fixed at 50 %.
- set_output_low(output_low_level: float) None[source]
# PSRC:OUTPutlow driver.psrc.set_output_low(output_low_level = 1.0)
Sets the low level of the output pulse.
- Parameters:
output_low_level – -0.2 to -0.05
- set_rep_rate(repetition_rate: float) None[source]
# PSRC:REPRate driver.psrc.set_rep_rate(repetition_rate = 1.0)
Sets the pulse frequency, the repetition rate of the pulse.
- Parameters:
repetition_rate – Available values depend on the selected clock mode: Locked: 5/10/20/50/100/200/500 Hz, 1/5/10/25/50/100/250 MHz Free running: 5/10/20/50/100/200/500 Hz, 1/5/10/25/50 MHz
- set_state(state: bool) None[source]
# PSRC[:STATe] driver.psrc.set_state(state = False)
Switches the pulse output on and off.
- Parameters:
state – OFF | ON
Cloning the Group
# Create a copy of the original group, that exists independently
psrc_copy = driver.psrc.clone()
Subgroups