SimulatedPSU#
- class SimulatedPSU(
- visa_resource: str | VisaConfig,
Bases:
PSUDriverBaseClient for the in-process simulated PSU SCPI server.
Methods
Clear every latched protection trip on
channel.Close the driver's underlying transport.
Query the measured output current (amperes) on
channel.Query the configured current-limit setpoint (amperes) on
channel.Query whether
channelis regulating in constant voltage, constant current, unregulated, or off.Query whether the output on
channelis enabled.Query whether overcurrent protection is enabled on
channel.Query the overcurrent protection threshold (amperes) on
channel.Query whether overcurrent protection has tripped on
channeland not been cleared.Query the overvoltage protection trip delay (seconds) on
channel.Query whether overvoltage protection is enabled on
channel.Query the overvoltage protection threshold (volts) on
channel.Query whether overvoltage protection has tripped on
channeland not been cleared.Query whether remote sense is enabled on
channel.Query the measured output voltage (volts) on
channel.Query the configured voltage setpoint (volts) on
channel.Open the driver's underlying transport.
Enable or disable the output on
channel.Set the current limit (amperes) on
channel.Enable or disable overcurrent protection on
channel.Set the overcurrent protection threshold (amperes) on
channel.Set the overvoltage protection trip delay (seconds) on
channel.Enable or disable overvoltage protection on
channel.Set the overvoltage protection threshold (volts) on
channel.Enable or disable remote sense on
channel.Set the output voltage (volts) on
channel.- get_voltage(channel: int) float[source]#
Query the measured output voltage (volts) on
channel. Output may vary from voltage setpoint outside of constant voltage mode.
- get_current(channel: int) float[source]#
Query the measured output current (amperes) on
channel. Output may vary from current-limit setpoint outside of constant current mode.
- get_voltage_setpoint(channel: int) float[source]#
Query the configured voltage setpoint (volts) on
channel. Output may vary from actual measured voltage outside of constant voltage mode.
- get_current_setpoint(channel: int) float[source]#
Query the configured current-limit setpoint (amperes) on
channel. Output may vary from actual measured current outside of constant current mode.
- get_operating_mode(
- channel: int,
Query whether
channelis regulating in constant voltage, constant current, unregulated, or off.
- set_overvoltage_protection_level( ) None[source]#
Set the overvoltage protection threshold (volts) on
channel.
- get_overvoltage_protection_level(channel: int) float[source]#
Query the overvoltage protection threshold (volts) on
channel.
- set_overvoltage_protection_enabled( ) None[source]#
Enable or disable overvoltage protection on
channel.
- get_overvoltage_protection_enabled(channel: int) bool[source]#
Query whether overvoltage protection is enabled on
channel.
- set_overvoltage_protection_delay( ) None[source]#
Set the overvoltage protection trip delay (seconds) on
channel.
- get_overvoltage_protection_delay(channel: int) float[source]#
Query the overvoltage protection trip delay (seconds) on
channel.
- set_overcurrent_protection_level( ) None[source]#
Set the overcurrent protection threshold (amperes) on
channel.
- get_overcurrent_protection_level(channel: int) float[source]#
Query the overcurrent protection threshold (amperes) on
channel.
- set_overcurrent_protection_enabled( ) None[source]#
Enable or disable overcurrent protection on
channel.
- get_overcurrent_protection_enabled(channel: int) bool[source]#
Query whether overcurrent protection is enabled on
channel.
- get_remote_sense_enabled(channel: int) bool[source]#
Query whether remote sense is enabled on
channel.
- clear_protection(channel: int) None#
Clear every latched protection trip on
channel. The output stays off until re-enabled.