Skip to main content

Lab Power Supply Python Library for Serial Programming

Project description

Manson Lab Power Supply Python Library for Serial Programming

Prerequisites

Installation:

$ python3 -m pip install pyPowerSupplyController

Usage example

import pyPowerSupplyController as ps
instrumeent = ps.MansonInstrument()
try:
    instrumeent.open_port("/dev/cu.usbserial-0001")
except ps.CouldNotConnectError:
    print("could not connect to device")
print(instrumeent.get_hw_model())

Compatible Power Supply models

Manson Specs B&K Precision (OEM) Multicomp (OEM) Peaktech (OEM) Voltcraft (OEM)
HCS-3100 1..18V 0..10A PPS-11810
HCS-3102 1..36V 0..5A PPS-11360
HCS-3104 1..60V 0..2.5A PPS-11603
HCS-3150 1..18V 0..15A
HCS-3200 1..18V 0..20A 1688B PPS-13610
HCS-3202 1..36V 0..10A 1687B PPS-16005
HCS-3204 1..60V 0..5A 1685B PPS-11815
HCS-3300 1..16V 0..30A DPPS-16-30
HCS-3302 1..32V 0..15A DPPS-32-15
HCS-3304 1..60V 0..8A DPPS-60-8
HCS-3400 1..16V 0..40A 1565 DPPS-16-40
HCS-3402 1..32V 0..20A 1575 DPPS-32-20
HCS-3404 1..60V 0..10A DPPS-60-10
HCS-3600 1..16V 0..60A 1900B 1570 DPPS-16-60
HCS-3602 1..32V 0..30A 1901B 1580 DPPS-32-30
HCS-3604 1..60V 0..15A 1902B 1585 DPPS-60-15
NTP-6521 1..20V 0.25..5A MP710079
NTP-6531 1..36V 0.25..3A MP710080
NTP-6561 1..60V 0.25..1.6A MP710081
NTP-6621 1..20V 0.25..5A
NTP-6631 1..36V 0.25..3A
NTP-6661 1..60V 0.25..1.6A
SSP-8080 0..16V 0..5A
SSP-8160 0..42V 0..10A CPPS-160-42
SSP-8162 0..84V 0..5A CPPS-160-84
SSP-8320 0..42V 0..20A CPPS-320-42
SSP-8322 0..84V 0..10A CPPS-320-84
SSP-9081 0.5..36V 0..5A MP710083

Please note that this library has only been tested with a Manson HCS-3202 power supply so far.
Support for all other models was added only by using the vendor's command references and specs.

Running the Test Suite using an emulated Instrument

$ python3 run_test_emulated_instruments.py

To see the available options:

$ python3 run_test_emulated_instruments.py --help

Running the Test Suite using a real Instrument

$ python3 run_test_real_instrument.py COMPORT

e.g.
$ python3 run_test_real_instrument.py /dev/ttyUSB0

To see the available COMPORTs:

$ python3 run_test_real_instrument.py list

To see the available options:

$ python3 run_test_real_instrument.py --help

Running the Example Script using a real Instrument

$ python3 run_example_real_instrument.py COMPORT

e.g.
$ python3 run_example_real_instrument.py /dev/ttyUSB0

To see the available COMPORTs:

$ python3 run_example_real_instrument.py list

To see the available options:

$ python3 run_example_real_instrument.py --help

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

pyPowerSupplyController-0.0.8.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyPowerSupplyController-0.0.8-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file pyPowerSupplyController-0.0.8.tar.gz.

File metadata

  • Download URL: pyPowerSupplyController-0.0.8.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyPowerSupplyController-0.0.8.tar.gz
Algorithm Hash digest
SHA256 ee0ee0204191d109e1d5d9086069e262e3ea9d69cf700dd12c74c25d69bdd276
MD5 4676f0f2604c0b737f3e7d33d8614a7a
BLAKE2b-256 6e09e30e2fe5f80853580e3cd4b3ad6aa62e256299475864838445315f59d598

See more details on using hashes here.

File details

Details for the file pyPowerSupplyController-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for pyPowerSupplyController-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 928bbb892c9aa876c1cf1b73cb60772ea3f82a507062029dfbf543bc688b179b
MD5 a41789843cfccdda2b491730be0d7a97
BLAKE2b-256 878a69218ada7cf0e5c493b05a38980dacba2e204db22c588351281b800a97e5

See more details on using hashes here.

Supported by

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