The ha_hmp4030 module

Module for Hameg HMP4030 power supplies. Compatible with the ps module.

API

cmd_ha_hmp4030.init_ha_hmp4030(ha_hmp4030_id, conf_string)[source]

Initialize ha_hmp4030 power supply identified by ha_hmp4030_id

conf_string must include the parameter:

  • bus: conf_string of the underlying link module (GPIB, TCP, ...)
  • channel: channel on which the id will act
cmd_ha_hmp4030.deinit_ha_hmp4030(ha_hmp4030_id)[source]

Deinitialize an ha_hmp4030

cmd_ha_hmp4030.config_ha_hmp4030(ha_hmp4030_id)[source]

Configure an ha_hmp4030

cmd_ha_hmp4030.inval_ha_hmp4030(ha_hmp4030_id)[source]

Invalidate an ha_hmp4030

cmd_ha_hmp4030.reset_ha_hmp4030(ha_hmp4030_id)[source]

Send RST signal to PS

cmd_ha_hmp4030.set_voltage_ha_hmp4030(ha_hmp4030_id, voltage)[source]

Set voltage in Volts. channel can be 1, 2 or 3.

cmd_ha_hmp4030.set_current_ha_hmp4030(ha_hmp4030_id, current)[source]

Set current in Ampers. channel can be 1, 2 or 3.

cmd_ha_hmp4030.set_voltage_limit_ha_hmp4030(ha_hmp4030_id, voltage_limit)[source]

Set voltage limit in Volts. channel can be 1, 2 or 3. Over Voltage Protection is also set.

cmd_ha_hmp4030.set_current_limit_ha_hmp4030(ha_hmp4030_id, current_limit)[source]

Set current limit in Ampers. channel can be 1, 2 or 3.

cmd_ha_hmp4030.get_voltage_ha_hmp4030(ha_hmp4030_id)[source]

Get voltage in Volts. channel can be 1, 2 or 3.

cmd_ha_hmp4030.get_current_ha_hmp4030(ha_hmp4030_id)[source]

Get current in Ampers. channel can be 1, 2 or 3.

cmd_ha_hmp4030.power_on_ha_hmp4030(ha_hmp4030_id)[source]

Turn on all channels.

cmd_ha_hmp4030.power_off_ha_hmp4030(ha_hmp4030_id)[source]

Turn off all channels

cmd_ha_hmp4030.free_command_ha_hmp4030(ha_hmp4030_id, command)[source]

Send a raw command to the PS

cmd_ha_hmp4030.free_query_ha_hmp4030(ha_hmp4030_id, query)[source]

Send a raw command to the PS

cmd_ha_hmp4030.get_error_queue_ha_hmp4030(ha_hmp4030_id)[source]

Read error queue until the end (code 0)