Skip to main content

Official Python wrapper for CAEN VMELib, CAEN Comm and CAEN PLU libraries.

Project description

caen_libs

Official Python wrapper for CAEN VMELib, CAEN Comm and CAEN PLU libraries.

Install

You need to install the latest version of the libraries from the CAEN website.

Then, install this module and have fun.

Examples

This example show the simplest way to read some registers using the CAEN Comm:

from caen_libs import caencomm as comm

conn_type = comm.ConnectionType.USB
link_number = 0
conet_node = 0
vme_ba = 0

with comm.Device.open(conn_type, link_number, conet_node, vme_ba) as device:
    # Assuming to be connected to a CAEN Digitizer 1.0
    serial_byte_1 = device.read32(0xF080) & 0xFF
    serial_byte_0 = device.read32(0xF084) & 0xFF
    serial_number = (serial_byte_1 << 8) | serial_byte_0
    print(f'Connected to device with serial number {serial_number}')

References

Requirements and documentation can be found at https://www.caen.it/subfamilies/software-libraries/.

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

caen_libs-1.0.0rc1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

caen_libs-1.0.0rc1-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file caen_libs-1.0.0rc1.tar.gz.

File metadata

  • Download URL: caen_libs-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for caen_libs-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 9c993069b18dd4f53737370f3e0ddad6f36de45af03b836806c149ac0421ee61
MD5 3f40cbed2356ff48b3b12bf0ad33682a
BLAKE2b-256 34ee698b357cac94cd95339647b7ef8c4cfb2582fdfef83eba8b8a95d718cc6e

See more details on using hashes here.

File details

Details for the file caen_libs-1.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: caen_libs-1.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for caen_libs-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 495d7a86a26efab20a24c0af2022e0e036e4c728d9171058ffff51e40175823d
MD5 ce22031435f6b118ab72f7cf1f5f46b7
BLAKE2b-256 cf0e410d67fd9074b9808b5a5fd407aaeb6f9db2a981b0f0682d5ee732f12595

See more details on using hashes here.

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