PicoQuant / snAPI

snAPI is a Python wrapper which enables seamless communication and configuration with PicoQuant TCSPC devices.
https://picoquant.github.io/snAPI/
Other
25 stars 4 forks source link

sn.correlation.isFinished() never reports finished #25

Closed JustinWoodring closed 4 months ago

JustinWoodring commented 4 months ago

Describe the bug Calling sn.correlation.measure() which should finish after 1 second never updates sn.correlation.isFinished() with a value other than False.

To Reproduce Steps to reproduce the behavior: Call sn.correlation.measure(). Then inside a while loop check sn.correlation.isFinished()

Expected behavior sn.correlation.isFinished() should return True after approximately 1 second

Logfile Add corresponding logfile from C:\data\PicoQuant\Logs . 240613.log

Screenshots image

Additional context System was working as expected but for some reason now only reports False. I've tried restarting the MultiHarp device and my own computer.

tpoint75 commented 4 months ago

This seems to be because the FCS is a bit slow. I improved the routine. Look for the next release. The log file says that the data passed all buffers. But the correlation class is not finished yet. There will be a measurement finished log entry if it's done.

tpoint75 commented 4 months ago

Are you using g2 or FCS-correlation? If FCS, pleas try the new FFCS method and report if its working! Thx Torsten.

JustinWoodring commented 4 months ago

Upon further experimentation, the issue was due to the overall slow process of correlating g2 which explains my rather mixed results. Reducing various factors such as input intensity and ratio of bin width to acquisition time helped to resolve the issue. I appreciate your time and support!

tpoint75 commented 4 months ago

Ahh, ok, I understand and thank you for your LinkedIn post!