Skip to main content

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

Project description

caen_libs

Official Python wrapper for CAEN VMELib, CAEN Comm, CAEN PLU and CAEN HV Wrapper 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


print(f'CAEN Comm wrapper loaded (lib version {comm.lib.sw_release()})')

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.0rc2.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

caen_libs-1.0.0rc2-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for caen_libs-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 2491a7ad9fa498d64b1863fe7137dbfc478b9f625cb61dff1f8f9bf448615282
MD5 6bd09a5c19a771552e13e9d30724adea
BLAKE2b-256 4b166a3d37284db4d6b20c3c9d6a6a7dee0ff1e41943775b6f72eb527e16e59d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for caen_libs-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 380c8616fb3874dcc4b9f47c8f773aa4f204b4718d5c1cd5cf0860029989a090
MD5 617b7473de231006dcfbaf8c3b3f0c7b
BLAKE2b-256 ad4733805c0bfa4c63d265be9566ea56d71363dbf9289d8838adb9cce017b4f1

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