Rohde + Schwarz HMP Series programmable powersupplies¶
The Rhode + Schwarz HMP Series are programmable powersupplies that are supported by the HILSTER Testing Framework.
The user does not need not call any methods. He can use the automatic delegation to easily set current and voltage by assigning values to the members of the same names.
The abstraction supports virtual controls that appear as class members. These are
voltage<i>
, actual_voltage<i>
, current<i>
and actual_current<i>
. <i>
it the port (1..4)
.
For most usecases using the virtual controls should be appropriate.
Usage:
from htf.powersupply import HMP2020
h = HMP2020("COM3")
# set the voltage on port 1
h.voltage1 = 1.23
# print the measured voltage on port 1
print(h.actual_voltage1)
# set the current on port 2
h.current2 = 0.2
# print the measured current on port 2
print(h.actual_current2)
-
class
htf.powersupply.rs_hmpseries.
HMP2020
(comport, baudrate=9600, parity='N', stopbits=1, timeout=1.0, command_delay=0.05, wait_after_set_voltage=False, wait_time=0.5)¶ HMP2020: 1 × 0 V to 32 V/0 A to 10 A; 1 × 0 V to 32 V/0 A to 5 A (188 W)
-
close
()¶ Close serial connection.
-
disable_output
()¶ Disable the output of the currently selected channel.
-
enable_output
()¶ Enable the output of the currently selected channel.
-
get_actual_current
()¶ Get the measured current of the currently selected channel.
- Returns
the measured current of the currently selected channel
- Return type
-
get_actual_voltage
()¶ Get the measured voltage of the currently selected channel.
- Returns
the measured voltage of the currently selected channel
- Return type
-
get_current
()¶ Get the current of the currently selected channel.
- Returns
the current of the currently selected channel
- Return type
-
get_voltage
()¶ Get the voltage of the currently selected channel.
- Returns
the voltage of the currently selected channel
- Return type
-
select_channel
(channel)¶ Select a channel.
- Parameters
channel (int) – the channel to be selected (
1 .. 4
)
-
-
class
htf.powersupply.rs_hmpseries.
HMP2030
(comport, baudrate=9600, parity='N', stopbits=1, timeout=1.0, command_delay=0.05, wait_after_set_voltage=False, wait_time=0.5)¶ HMP2030: 3 × 0 V to 32 V/0 A to 5 A (188 W)
-
close
()¶ Close serial connection.
-
disable_output
()¶ Disable the output of the currently selected channel.
-
enable_output
()¶ Enable the output of the currently selected channel.
-
get_actual_current
()¶ Get the measured current of the currently selected channel.
- Returns
the measured current of the currently selected channel
- Return type
-
get_actual_voltage
()¶ Get the measured voltage of the currently selected channel.
- Returns
the measured voltage of the currently selected channel
- Return type
-
get_current
()¶ Get the current of the currently selected channel.
- Returns
the current of the currently selected channel
- Return type
-
get_voltage
()¶ Get the voltage of the currently selected channel.
- Returns
the voltage of the currently selected channel
- Return type
-
select_channel
(channel)¶ Select a channel.
- Parameters
channel (int) – the channel to be selected (
1 .. 4
)
-
-
class
htf.powersupply.rs_hmpseries.
HMP4030
(comport, baudrate=9600, parity='N', stopbits=1, timeout=1.0, command_delay=0.05, wait_after_set_voltage=False, wait_time=0.5)¶ HMP4030: 3 × 0 V to 32 V/0 A to 10 A (384 W)
-
close
()¶ Close serial connection.
-
disable_output
()¶ Disable the output of the currently selected channel.
-
enable_output
()¶ Enable the output of the currently selected channel.
-
get_actual_current
()¶ Get the measured current of the currently selected channel.
- Returns
the measured current of the currently selected channel
- Return type
-
get_actual_voltage
()¶ Get the measured voltage of the currently selected channel.
- Returns
the measured voltage of the currently selected channel
- Return type
-
get_current
()¶ Get the current of the currently selected channel.
- Returns
the current of the currently selected channel
- Return type
-
get_voltage
()¶ Get the voltage of the currently selected channel.
- Returns
the voltage of the currently selected channel
- Return type
-
select_channel
(channel)¶ Select a channel.
- Parameters
channel (int) – the channel to be selected (
1 .. 4
)
-
-
class
htf.powersupply.rs_hmpseries.
HMP4040
(comport, baudrate=9600, parity='N', stopbits=1, timeout=1.0, command_delay=0.05, wait_after_set_voltage=False, wait_time=0.5)¶ HMP4040: 4 × 0 V to 32 V/0 A to 10 A (384 W)
-
close
()¶ Close serial connection.
-
disable_output
()¶ Disable the output of the currently selected channel.
-
enable_output
()¶ Enable the output of the currently selected channel.
-
get_actual_current
()¶ Get the measured current of the currently selected channel.
- Returns
the measured current of the currently selected channel
- Return type
-
get_actual_voltage
()¶ Get the measured voltage of the currently selected channel.
- Returns
the measured voltage of the currently selected channel
- Return type
-
get_current
()¶ Get the current of the currently selected channel.
- Returns
the current of the currently selected channel
- Return type
-
get_voltage
()¶ Get the voltage of the currently selected channel.
- Returns
the voltage of the currently selected channel
- Return type
-
select_channel
(channel)¶ Select a channel.
- Parameters
channel (int) – the channel to be selected (
1 .. 4
)
-