pyCLAWSps
python 3 script for the Hamamatsu c11204-01/02 power supply
Prerequisites
This module requires numpy and pySerial and will be installed automatically
Installation
Install this package by the following command on a console:
pip install pyCLAWSps
Compatibility
Tested with only python 3
Using the package
To use this code simply import module and initialise with commands. Make sure to connect power supply to the PC before initializing
>>> from pyCLAWSps import CLAWSps >>> ps = CLAWSps() >>> ps.printStatus()
Functions
printMonitorInfo() - Prints information on the power supply status, voltage (V) and current (mA) values
getPowerInfo() - Returns the power supply voltage (V) and current (mA) values as tuple
setHVOff() - Set power supply High Voltage OFF
setHVOn() - Set power supply High Voltage ON
reset() - Reset the power supply
setVoltage(voltage_dec) - Sets the high voltage output to the voltage specified (V)
getVoltage() - Returns power supply voltage in Volts
getCurrent() - Returns power supply current in mA
printStatus() - Prints status information on the power supply (similar to ‘getMonitorInfo()’) but without voltage and current values
close() - Close serial port
help() - This help
NOTE - The applied voltage can be set upto 90 V by c11204 power supply. Change the upper voltage limit (self.V_lim_upper in pyCLAWSps/__init__) as required by the MPPC in use. Default is set to 60 V
Metadata
Release files for pyCLAWSps 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyCLAWSps-0.1.10.tar.gz | 5.0 kB | Without provenance | Details for pyCLAWSps-0.1.10.tar.gz |
Release files / pyCLAWSps-0.1.10.tar.gz
| Download URL | pyCLAWSps-0.1.10.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afc51aff6cc84399ef4d5bbc89ff17a8c9e8028a665d715d42674caef0fa8209
|
|
BLAKE2b-256 checksum How to use checksums |
82dd432a4fb59292fb805a83d916315ae0da885f8671a0d47668ab575c453b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.5
|
Security for pyCLAWSps 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.