Skip to main content

ITech M3905D PSU Driver and Diagnostic Package

Project description

ITech M3905D PSU

Description

This is an interface library for the ITech M3905D Power Supply (10V - 510A)

Installation

pip install pts-itech-m3905d-psu

Usage

Driver Functions

Base class for the ITech M3905D PSU

open_connection()

Opens a TCP/IP connection to the ITech M3905D PSU

close_connection()

Closes the TCP/IP connection to the ITech M3905D PSU

identity() str

This command is used to query the IDN of the device.

scpi_version() str

This command is used to query the version number of the used SCPI command.

reset() None

Resets the instrument to pre-defined values that are either typical or safe.

system_remote() None

This command is used to set the instrument to the remote control mode via the communication interface.

system_local() None

This command is used to set the instrument to local mode, i.e. panel control mode.

system_error() str

This command is used to query the error information of the instrument.

system_clear_error_queue() None

This command is used to clear the error queue.

get_ip_address() str

This command is used to query the IP address of the instrument.

get_subnetmask() str

This command is used to query the subnet mask of the LAN communication.

selftest() bool

Self-test query. Performs an instrument self-test. If self-test fails, one or more error messages will provide additional information.

Returns

True or False

set_mode(mode: Literal['VOLT', 'CURR']) None

This command is used to set the working mode of the power supply.

VOLTage: Indicates that the power supply is operating in CV priority mode

CURRent: Indicates that the power supply is operating in CC priority mode

Parameters

mode – ‘VOLT’ or ‘CURR’

get_mode() str

This command is used to query the working mode of the power supply.

Returns

‘VOLTage’ or ‘CURRent’

set_voltage(voltage: Union[float, str]) None

This command is used to set the output voltage value Vset in CV priority mode

Parameters

voltage – MINimum|MAXimum|DEFault|<value> ; Setting range: MIN to MAX; value: 0-10V

get_voltage() str

This command is used to query the output voltage value Vset in CV priority mode.

set_current(current: Union[float, str]) None

This command is used to set the output current value Iset in CC priority mode

Parameters

range (current:MINimum|MAXimum|DEFault|<value> ; Setting) – MIN to MAX; value: 0-510A

get_current() str

This command is used to query the output current value Iset in CC priority mode

output_on() None

Enable the output.

output_off() None

Disable the output.

output_status() str

This command is used to query the status of the output: enabled or disabled.

set_voltage_upper_limit(voltage_ul: Union[float, str]) None

This command is used to set the voltage upper limit value Vlim in CC priority mode

Parameters

voltage_ul – MINimum|MAXimum|DEFault|<value>; value: 0-10V; Setting range: MIN to MAX

set_voltage_lower_limit(voltage_ll: Union[float, str]) None

This command is used to set the voltage lower limit value Vl in CC priority mode

Parameters

voltage_ll – MINimum|MAXimum|DEFault|<value>; value: 0-10V; Setting range: MIN to MAX

get_voltage_limits() Tuple

This command is used to query the voltage upper limit value Vlim and voltage lower limit value Vl in CC priority mode.

set_current_upper_limit(curr_ul: Union[float, str]) None

This command is used to set the current upper limit value Ilim value in CV priority mode

Parameters

curr_ul – MINimum|MAXimum|DEFault|<value>; value: 0-510A; Setting range: MIN to MAX

set_current_lower_limit(curr_ll: Union[float, str]) None

This command is used to set the current lower limit value I- in CV priority mode

Parameters

curr_ll – MINimum|MAXimum|DEFault|<value> ; value: 0-510A; Setting range: MIN to MAX

get_current_limits() Tuple

This command is used to query the current upper limit value Ilim and current lower limit value I- in CV priority mode.

Authors and acknowledgment

Author: @shuparnadeb_pts

Maintainers: @julianpass and @shuparnadeb_pts

License

License: MIT

Project status

Not in active maintenance

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pts_itech_m3905d_psu-0.0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

pts_itech_m3905d_psu-0.0.1-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page