dso_power_supply module

class dso_power_supply.PowerSupply(parent)

Bases: object

This module can control the Power Supply function on your DSO

check_ocp(ch: int) bool

Returns the power supply OCP status.

Parameters:

ch (int) – Power Supply output#

Returns:

True or False

Return type:

bool

clear_ocp(ch: int)

Reconfigure the power supply when OCP occured

Parameters:

ch (int) – Power Supply output#

get_voltage(ch: int) float

Get Power Supply output# voltage

Parameters:

ch (int) – Power Supply output#

Returns:

voltage

Return type:

float

is_on(ch: int) bool

Check the Power Supply output# is ON or not.

Parameters:

ch (int) – Power Supply output#

Returns:

True or False

Return type:

bool

set_off(ch: int)

Power Supply output# OFF

Parameters:

ch (int) – Power Supply output#

set_on(ch: int)

Set Power Supply output# ON

Parameters:

ch (int) – Power Supply output#

set_voltage(ch: int, volt: float)

Set Power Supply output# voltage

Parameters:
  • ch (int) – Power Supply output#

  • volt (float) – voltage