GithubHelp home page GithubHelp logo

time-tagger's Introduction

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()

time-tagger's People

Contributors

luyves avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

abhay126

time-tagger's Issues

Overflow error when updating counts plot with updatemeta method

Simulating the photon counts with the updatemeta method sometimes raises an overflow error in pyqtgraph's Point.py. It is not consistent and will sometimes start working again when restarting the kernel.
I tried debugging the code but found nothing that would cause an overflow error - even using and updater method without metaprogramming raises this error sometimes. I think it might be because of numpy's float operations when assigning simulated values, I'll revisit when using real data from the TDC.

I tracked down this bug back to 2013 and it seems it hasn't been fixed yet.

I'll keep this issue open until I either fix it or it stops happening.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.