tiagocoutinho / hamamatsu

Python library for hamamatsu detectors (lima plugin included)
GNU General Public License v3.0
11 stars 5 forks source link

Real time imaging #7

Open IanSukarsa opened 1 year ago

IanSukarsa commented 1 year ago

I've been trying to create a program which displays frames in real time, mainly for adjustment. Using Stream, I've been able to capture several pictures but it doesn't allow me to capture images in real time as Stream has the number of frames in argument. I've tried calling Stream multiple times : "stream=Stream(camera, nb_frames)", but it doesn't seem to let me : "hamamatsu.dcam.DCAMError: DCAMError: 'dcambuf_alloc' raised NOTSTABLE (2147483908)" Do you know of an alternative I can use to take pictures multiple times without having to restart my program?

tiagocoutinho commented 1 year ago

Hi, thanks for trying the library. Unfortunately I no longer work for the institute that used this type of camera so I'm not able to provide a reliable answer to the possibility of having a continuos stream.

However it should be possible to repeatedly loop on acquisitions of fixed amount of frames. Again I cannot reproduce your problem because I no longer have access to a camera.

Maybe someone else as run into the same problem as is willing to share