Skip to main content

LArPix DAQ system

Project description

larpix-daq

Documentation Status

LArPix DAQ is the data acquisition system for LArPix. It handles the data flow between the "data boards" and offline storage and includes data monitoring and operator control functionality built on the xylem DAQ framework.

LArPix DAQ consists of a set of scripts which are responsible for individual parts of the DAQ system's functionality, as well as an operator interface API which can be run in an interactive python session or used as a basis for a more sophisticated interactive program. The scripts can be run from the same or from different computers, as long as the IP addresses of the various computers are known.

System states

There are three states the system can be in: READY, RUN, and STOP. The state is controlled through the Operator object using the methods prepare_run (transition to READY), begin_run (transition to START), and end_run (transition to STOP).

  • STOP: Default state on startup. All components are not expecting data.
  • READY: Components should prepare to receive data. Data may arrive at the component before the instruction to transition to the RUN state (though this is expected to be rare). The component should treat that data as if it were received in the RUN state.
  • RUN: Components should expect to receive data. Data should not be produced in any other state.

To mark the start and end of a run in the data flow, the producer.py script produces INFO messages with contents "Beginning run" and "Ending run", respectively.

Operator

The LArPix DAQ Operator module provides the interface into the DAQ core for all DAQ operations.

Operator methods interact with the DAQ core to accomplish the desired behavior. For the simplest interactions, a single request and response exchange occurs, and the result is returned. (TODO!!! unify this interface) For most interactions, there are multiple responses for a single request - e.g. an immediate acknowledgement of receipt and then the eventual result. The methods implementing these interactions return generator iterators rather than values. The way to call these functions usually looks like

o = Operator()
final_responses = []
for response in o.run_routine('example'):
    print(response)
    # interact with response object within loop
# When the loop ends, the last response received is still saved in
# the response object
final_responses.append(response)

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

larpix-daq-0.2.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distributions

larpix_daq-0.2.1-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

larpix_daq-0.2.1-py2-none-any.whl (23.7 kB view details)

Uploaded Python 2

File details

Details for the file larpix-daq-0.2.1.tar.gz.

File metadata

  • Download URL: larpix-daq-0.2.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

File hashes

Hashes for larpix-daq-0.2.1.tar.gz
Algorithm Hash digest
SHA256 14fc55f0e6459c1311bacfd4a49855c4834b354b3e9699bd23c38ad261754f12
MD5 66150bc1277c8c05ba04f7614ed567eb
BLAKE2b-256 d8cdfe0266373f8217d4d9fdf83625b037388ee0b25ee569c2a7572cba40abb7

See more details on using hashes here.

File details

Details for the file larpix_daq-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: larpix_daq-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

File hashes

Hashes for larpix_daq-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d538cb9e9b9e6cd511527c50ce22bf6433ba6fb3d35774c18ad5738777facc6e
MD5 779369b5aaa71083ee70c606623461c6
BLAKE2b-256 176dea234ec67d9795e34335302b1c16dd58f37661a3fa569ead7cb924b53494

See more details on using hashes here.

File details

Details for the file larpix_daq-0.2.1-py2-none-any.whl.

File metadata

  • Download URL: larpix_daq-0.2.1-py2-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

File hashes

Hashes for larpix_daq-0.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 4bcf1ff633b7f016dc5c688a7b3d63e1e08c4eb3d47799bede49f2c1a37db2fb
MD5 4f651c59a6fceac4d61977c0ac064b24
BLAKE2b-256 d92e9ab26ea69d2a801c808b84c939638482dde590b166e6fe775a3be31475a1

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