Skip to main content

Python interface for the Harp class of PicoQuant's time interval analysers and photon counters

Project description

EPICS IOC for the PicoQuant HydraHarp 400

release pipeline coverage

Introduction

The HydraHarp 400 is advertized as a "multichannel picosecond event timer module" by its manufacturer, PicoQuant GmbH in Germany.

This is an EPICS Input-Output Controller (IOC) application for the HydraHarp. It uses the EMMI API, which in turn uses Diamond Light Source's EPICS wrapper pythonSoftIOC (as of September 2023). This means that miniquant-ioc's EPICS CA stack is essentially the "original" C/C++ implementation, merely interfaced by Python.

The hardware access layer is being published as miniquant -- a truly Python'esque :) API layer on top of the proprietary HydraHarp API of PicoQuant, but without the EPICS specific code.

Installation

Miniquant-ioc itself is installed fairly easy via PyPI:

pip install miniquant-ioc

Or via direct clone from Gitlab:

git clone https://gitlab.com/codedump2/miniquant-ioc \
    && pip install ./miniquant-ioc

If miniquant (the API layer) is not already installed, it will be automatically pulled from PyPI as a dependency of miniquant-ioc. In that case, you will most certainly have to go through a mildly elaborate set of post-install procedures to make sure that miniquant is, in fact, able to find and access your HydraHarp. (This is owing for one to the proprietary nature of the original PicoQuant C/C++ API for the HydraHarp, and for another to the fact that the HydraHarp 400 has a quirky USB controller; it works with any modern upstream Linux kernel, but requires specialized kernel boot parameter or USB driver module settings.)

Configuration

A specific IOC configuration file is necessary to run the Miniquant IOC. By default, the IOC loads its configuration from /etc/miniquant/harp.yaml, but that behaviour can be overridden using the -c or --harp-config command line parameter of miniquant-ioc.

The PyPI installation might have placed a copy of a usable harp.yaml in your /etc/miniquant/... directory. If it hasn't, obtain one e.g. from here.

The configuration file has two distinct sets of options, organized in as many top-level YAML sections:

  • harp: general HydraHarp device settings, like measurement mode, histogram size and resolution, offsets and zero-crossing levels; contains the following subkeys:

    • device: should have a string as value with one of "first", "any", or a HydraHarp device; the IOC will only connect to the device as specified ("first" and "any" is a good choice if you have only one device attached to a computer's USB ports)

    • presets:

    • settings:

  • epics: application settings that directly influence the IOC behavior; in turn, these are divided in:

    • prefix: single key, contains the EPICS prefix as a string value

    • defaults: default settings to be used for all exported properties, can individually be overridden

    • harpBase: contains PV definitions all non channel specific properties of a HydraHarp device to export as PVs (stuffed in a subsection exports),

    • harpChannels: contains PV definitions for all channel specific properties. The subkey interfix contains a string to use in naming the channel-specific PVs (should contain {} format specifier for the channel index), and an exports section with actual PV definitions.

  • IOC-specific settings about which properties to export as process variables (PVs).

Running

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

miniquant_ioc-0.1.20.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

miniquant_ioc-0.1.20-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file miniquant_ioc-0.1.20.tar.gz.

File metadata

  • Download URL: miniquant_ioc-0.1.20.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for miniquant_ioc-0.1.20.tar.gz
Algorithm Hash digest
SHA256 5d344e13b4181e0f0383007b70f4c1de46e782e5612241bc8eb285c3ab2c2097
MD5 2fbc8fcd76d2f44b6599a4d9f2928830
BLAKE2b-256 347389c220228cf14404456c02599f9dea3f6fa90016c0fd7b54cdd5671e6e95

See more details on using hashes here.

File details

Details for the file miniquant_ioc-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: miniquant_ioc-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for miniquant_ioc-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 d031bd3185e35bfd466fe1ab27c5b12df6f35c73068b0e351990f63a2157e66b
MD5 f14c0e5ff55c5537559b7dc5c388733a
BLAKE2b-256 97b8d96880382232f1e4cdbb20b7cfbb6a9f7793e37ce6dbd3e1394f15480961

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