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.16.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

miniquant_ioc-0.1.16-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: miniquant_ioc-0.1.16.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for miniquant_ioc-0.1.16.tar.gz
Algorithm Hash digest
SHA256 ecb0cc3cce2eebdcff53253a2e1a5a50b517d901bba6ab131eb3c9929cb2f53b
MD5 4736adce7cdac75e354d0279c53466e5
BLAKE2b-256 319384d8592597d3e3a43604cd20a0f8c1a6a2f1f55d74656bbee7375fb48c64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for miniquant_ioc-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 cb4764902db8eeca025d28de50db69440b9de28f2a2d290211b5c6307224fa8e
MD5 3c6fde2a059bc0c4a08c8ef6bbede771
BLAKE2b-256 c972763dfe0a23aca51922214da70d782c204d9d11cfaf32ef246e0e2447619f

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