Skip to main content

Lab Power Supply Python Library for Serial Programming

Project description

Manson Lab Power Supply Python Library for Serial Programming

Prerequisites

Installing Python3:

  • Debian/Ubuntu

     $ sudo apt-get install python3 python3-pip
    
  • macOS (tested on macOS 10.14 Mojave)
    Install HomeBrew:

     $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    

    Install Python3:

     $ brew install python3
    

Installing pySerial:

see pySerial Docs

  • Debian/Ubuntu

     $ sudo apt-get install python3-serial
    
  • macOS

     $ python3 -m pip install pyserial
    

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.7.tar.gz (35.3 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.7-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyPowerSupplyController-0.0.7.tar.gz
  • Upload date:
  • Size: 35.3 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.7.tar.gz
Algorithm Hash digest
SHA256 a86da85260497d6a95267fb3c0f8334781691545de004581b647f92f7ecd8e9d
MD5 3e4d4a66c2f5df3da9a62ef49f9614f0
BLAKE2b-256 c5ac5c59a3da0d00b31a0196395d9d4c5b96752512ac0b793ac438617471b549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyPowerSupplyController-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ab047206816939d3988c8b338d60ada12317bc2f7feb9b0ac1b434751eec38
MD5 5d5d13125324cc618aa111a3cd610685
BLAKE2b-256 94a71863f96eb683785c440525e25ebf17f46d6155761ca475b1525c67cea719

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