Skip to content

ctypes based library for the IDQuantique id800 time-to-digital converter (TDC)

License

Notifications You must be signed in to change notification settings

luyves/time-tagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

hunahpy

Python 3.6 (32 bits only)

ctypes based library for the IDQuantique id800 time-to-digital converter (TDC)

Shared libraries you need:

  • nhconnect.dll
  • nhconnect.lib
  • tdcbase.dll
  • tdcbase.lib
  • libusb0.dll (32 bit)

hunahpy package:

hunahpy contains one object only: TDC

TDC is a controller for the id800. Its methods can be access like:

  • TDC.getLastTimestamps() (a function)
  • TDC.timebase (a value)

config.py is the configuration file for hunahpy. It allows for two different data saving schemes using the cont variable:

  • cont = True (or continuous data saving) means it creates only one file and dumps every recorded event there. You need to call the write function again to stop writing.
  • cont = False means it creates n data files and writes time tags in one until a set buffer size is reached. It then stops and moves on to the next one automatically.

Example script to open or create a file filename.dat saved in /data/ and write 10 seconds worth of events in binary format:

import time
from hunahpy import TDC

tagger = TDC()
tagger.writeTimestamps('/data/filename.dat',binary=True)
time.wait(10)
tagger.writeTimestamps()
tagger.close()

If opening a TDC object don't forget to close connection with TDC.close()

About

ctypes based library for the IDQuantique id800 time-to-digital converter (TDC)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages