Skip to main content

caenhv

PyPI version Build and Test PyPI - Python Version

🤔 What is this?

This is an unofficial Python package to interface with CAEN high voltage power supplies over USB (RS232 protocol).

⚠️ Disclaimer

The features of this package are based on my needs at the time of writing. I have done very limited testing on a single model (DT1471ET) but it should also work for other CAEN power supplies also supporting RS232.

If you use this package, it is very possible you find a bug or some oversight. You are encouraged to make a pull request or to create an issue to report a bug, to request additional features or to suggest improvements.

⚙️ Installation

Installation via pip is supported. To install the latest published version, run:

pip install caenhv

To install the package from source, including test dependencies, clone the repository and run:

pip install .[test]

👨‍💻 Usage

from caenhv import CaenHV

# automatically detect serial port and baudrate (can be manually set)
caen = CaenHV()
# get the first module. CAEN supports multiple modules over the same connection
# typically only one module should be present
module = caen[0]

# get channel number 2
channel = module.channel(2)

# print current 'vset' and 'vmon' values
print(f"vset: {channel.vset}")
print(f"vmon: {channel.vmon}")

# switch channel off and off
channel.off()
channel.on()

# set a new value of 'vset'
channel.vset = 300.0  # 300 V

Metadata

Release files for caenhv 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for caenhv 0.0.1
File Size Uploaded Provenance Actions
caenhv-0.0.1.tar.gz 7.0 kB Without provenance Details for caenhv-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for caenhv 0.0.1
File Interpreter ABI Platform Actions
caenhv-0.0.1-py3-none-any.whl Python 3 none any Details for caenhv-0.0.1-py3-none-any.whl

Total release size: 14.5 kB

Release files / caenhv-0.0.1.tar.gz

Download URL caenhv-0.0.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8c81c3abfef3c0b82936cc798cd847fcbefb5112543ed4e44aff53d7ebc87d81
BLAKE2b-256 checksum
How to use checksums
1591e0a81d4a2fb52d9f478914a8d6f080ba54caf9b1320f55ceeaf622a12944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / caenhv-0.0.1-py3-none-any.whl

Download URL caenhv-0.0.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
829b5eacfe82273dbaf2c90b6fcdbe0960875adceca3b7b091b8f3df2dcf7b46
BLAKE2b-256 checksum
How to use checksums
fd82bbe996533b93174b777ed13f83fa3be13721a6f82e3f80b0c9f5cd9d1aeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for caenhv 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page