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

Defining imaging parameters #34

Open facetorched opened 2 months ago

facetorched commented 2 months ago

I would like to save ptu files that have a header which matches the TTTR image format described here. For example, the available parameters I know of are: ImgHdr_Dimensions, ImgHdr_Ident, ImgHdr_PixX, ImgHdr_PixY, ImgHdr_PixResol, ImgHdr_LineStart, ImgHdr_LineStop, ImgHdr_Frame, ImgHdr_BiDirect, ImgHdr_SinCorrection. As far as I have found in the documentation this is not currently possible through snAPI.

I am currently able to define markers with setMarkerEnable and setMarkerEdges in snAPI, but since these are not defined for LineStart, LineStop etc. I can't open it later as an image in another program (such as with ptufile).

I am using HydraHarp 400, usually use SymphoTime64 (now I am trying snAPI), I control the scanning and clocks through LabVIEW and NI DAQ card.

I would like there to be a way to define these imaging parameters in the config or otherwise through the API so that when the PTU file is saved, it contains the relevant header information. Furthermore, one should be able to set Measurement_SubMode = 3.

Alternatively, I have considered that I could modify the header with an external program to add these header entries post-acquisition.

tpoint75 commented 2 months ago

That make sense, I think I could make it in the next release.