Protection

SCPI Commands

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

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

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

Resets the OVP state of the selected channel. If an OVP 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]:VOLTage:PROTection:CLEar
driver.source.voltage.protection.clear_with_opc()

Resets the OVP state of the selected channel. If an OVP 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]:VOLTage:PROTection:LEVel
value: float = driver.source.voltage.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]:VOLTage:PROTection[:STATe]
value: bool = driver.source.voltage.protection.get_state()

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

return

en: No help available

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

Queries the OVP state of the selected channel.

return

result: No help available

set_level(voltage_protection: float) None[source]
# SCPI: [SOURce]:VOLTage:PROTection:LEVel
driver.source.voltage.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 for the overvoltage protection value in V.

  • MIN | MINimum: Minimum value for the overvoltage protection value at 0.000 V.

  • MAX | MAXimum: Maximum value for the overvoltage protection value at 64.050 V.

set_state(en: bool) None[source]
# SCPI: [SOURce]:VOLTage:PROTection[:STATe]
driver.source.voltage.protection.set_state(en = False)

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

param en
  • 0: OVP is deactivated

  • 1: OVP is activated