Protection

SCPI Commands

SOURce:POWer:PROTection:STATe
SOURce:POWer:PROTection:LEVel
SOURce:POWer:PROTection:TRIPped
SOURce:POWer:PROTection:CLEar
class ProtectionCls[source]

Protection commands group definition. 4 total commands, 0 Subgroups, 4 group commands

clear() None[source]
# SCPI: [SOURce]:POWer:PROTection:CLEar
driver.source.power.protection.clear()

Resets the OPP state of the selected channel. If an OPP event has occurred before, the reset also erases the message on the display.

clear_with_opc(opc_timeout_ms: int = -1) None[source]
# SCPI: [SOURce]:POWer:PROTection:CLEar
driver.source.power.protection.clear_with_opc()

Resets the OPP state of the selected channel. If an OPP event has occurred before, the reset also erases the message on the display.

Same as clear, but waits for the operation to complete before continuing further. Use the RsNgx.utilities.opc_timeout_set() to set the timeout value.

param opc_timeout_ms

Maximum time to wait in milliseconds, valid only for this call.

get_level() float[source]
# SCPI: [SOURce]:POWer:PROTection:LEVel
value: float = driver.source.power.protection.get_level()

Sets or queries the overvoltage protection value of the selected channel.

return

voltage_protection: No help available

get_state() bool[source]
# SCPI: [SOURce]:POWer:PROTection[:STATe]
value: bool = driver.source.power.protection.get_state()

Sets or queries the OPP state of the previous selected channel.

return

arg_0: No help available

get_tripped() bool[source]
# SCPI: [SOURce]:POWer:PROTection:TRIPped
value: bool = driver.source.power.protection.get_tripped()

Queries the OPP state of the selected channel.

return

result: No help available

set_level(voltage_protection: float) None[source]
# SCPI: [SOURce]:POWer:PROTection:LEVel
driver.source.power.protection.set_level(voltage_protection = 1.0)

Sets or queries the overvoltage protection value of the selected channel.

param voltage_protection
  • numeric value: Numeric value of the power protection level in watts.

  • MIN | MINimum: Minimum value of the power protection level at 0.00 W.

  • MAX | MAXimum: Maximum value of the power protection level at 200.00 W.

  • DEF | DEFault: Default value of the power protection level at 200.00 W.

set_state(arg_0: bool) None[source]
# SCPI: [SOURce]:POWer:PROTection[:STATe]
driver.source.power.protection.set_state(arg_0 = False)

Sets or queries the OPP state of the previous selected channel.

param arg_0
  • 0: OPP is deactivated

  • 1: OPP is activated