lab_driver.hmp40x0#

Module Contents#

Classes#

API#

class lab_driver.hmp40x0.DriverHMP40X0(num_ch: int = 4)[source]#

Initialization

Class for Remote Controlling the Power Supply R&S HMP40X0 via USB

Parameters:

num_ch – Number of available device channels (HMP4030 = 3, HMP4040 = 4)

Returns:

None

SerialDevice: pyvisa.Resource#

None

serial_open_known_target(resource_name: str, do_reset=False) None[source]#

Open the serial connection to device Args: resource_name: Ressource name of serial communication from device do_reset: Doing a device reset Return: None

serial_open(do_reset=False) None[source]#

Open the serial connection to device

serial_close() None[source]#

Closing the serial connection

get_id(do_print=True) str[source]#

Getting the device ID

do_beep(num_iterations=1) None[source]#

Doing a single beep on device

do_reset() None[source]#

Reset the device

ch_read_parameter(sel_ch: int) [float, float][source]#

Read sense parameter from HMP40X0

output_activate() None[source]#

Activate the already setted channels of HMP40X0

output_deactivate() None[source]#

Deactivate all channels of HMP40X0

afg_start() None[source]#

Starting the Arbitrary Generator on the configured channel

afg_stop() None[source]#

Stopping the Arbitrary Generator on the configured channel

ch_set_parameter(sel_ch: int, volt: float, cur: float) None[source]#

Set parameters I/V of each channel

afg_set_waveform(sel_ch: int, voltage: numpy.ndarray, current: numpy.ndarray, time: numpy.ndarray, num_cycles=0)[source]#

Set arbitrary waveform of the selected channel (max. 128 points)

class lab_driver.hmp40x0.ChannelInfoHMP40X0(ch_no: int)[source]#

Initialization

sel_ch() str[source]#
set_ch_voltage(voltage_value: float) str[source]#
set_ch_current_limit(current_value: float) str[source]#
get_ch_parameter() str[source]#
set_ch_output() str[source]#
read_ch_voltage() str[source]#
read_ch_current() str[source]#
set_sense_parameter(voltage: float, current: float) None[source]#
set_arbitrary_waveform(voltage: numpy.ndarray, current: numpy.ndarray, time: numpy.ndarray) str[source]#

Defining the Arbitrary Waveform for Powr Supply (max. 128 points)

set_arbitrary_repetition(num_cycles: int) str[source]#

Setting the cycles numbers of arbitrary waveform (0= infinitely)

set_arbitrary_transfer() str[source]#
set_arbitrary_start() str[source]#
set_arbitrary_stop() str[source]#