Python library for interfacing with IDQ ID801 Time to Digital Converter
Project description
IDQ ID801 TDC (Time to Digital Converter) or "Time Tagging Box"
It has a fast counter with a period ("native bin") of 81 ps. It outputs the value of this counter along with which channel saw the rising edge. This instruction assumes that you have the latest version of firmware updated on the physical IDQ ID801. Firmware update is contained with the official manual provided by the IDQ company itself (you should contact them directly if you own the device).
Table of Contents
Required setup to interface with IDQ devices
grant the permission to manage the IDQ USB device by running the following shell command:
sudo vim /etc/udev/rules.d/idq.rules
then, add the following lines to the file and press :wq to save and quit
# Make IDQ devices available to all users
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", MODE="0660"
install the package by running the following shell command:
pip install idq-id801
Python module that utilizes C library shared-object
I implemented a Python interface that connects to the C library shared-object. This module allows for simple integration with other Python scripts. The use cases are laid out in this example notebook.
A Python script to try is the real-time plotter that you can call by the following shell command:
# This is an example for configurations below:
# exposure: 100ms
# coincidence window: 500TDC
# switch_termination: off
# save: do not save to CSV file
# A graph: plot channels "1" and "2"
# B graph: plot channel "1/2" (coincidence between channels "1" and "2")
python3 real-time_plotter.py -e 100 -w 500 -t 0 -A "1" "2" -B "1/2"
To record the raw timestamps from the device record timestamps could be used:
python3 record_timestamps.py -e 100 -b 10_000 # to record all timestamps at 100ms exposure and 10_000 CSV writing batch size
Troubleshooting
If no information is retrieved from the device but no error is shown, try running python3 -m pytest -v to test if the device is working correctly. Note that you have to enable to channels first unless no channel is turned on by default.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file idq_id801-1.0.1.tar.gz.
File metadata
- Download URL: idq_id801-1.0.1.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eba033aae382b237d52bccf83117f0f58d4c19924374dfcbb19ebc6736004fd
|
|
| MD5 |
962a79c65cb27147bd6c33abb4ee2f6c
|
|
| BLAKE2b-256 |
69e79ba28a842fd2800d5fd7ee320af0e59b531940196c3fb468c23d12d0569c
|
File details
Details for the file idq_id801-1.0.1-py3-none-any.whl.
File metadata
- Download URL: idq_id801-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e6f2ca284f334cfefc1ec04dea8556e00cb79429e06b354e26e30dfcfbfa8e4
|
|
| MD5 |
aba19f871019be8b93de33fc4cdba6dc
|
|
| BLAKE2b-256 |
0f160d5bbd4627184937f87c32628eb7cf88d63a5e343994508e490db98792b8
|