benjamin created a new topic ' Acquition time too long' in the forum. 2 years ago

Hello everybody,

For a project:

  • I use a raspberry Pi 4 with a light version of ubuntu
  • I code using python3
  • I would like to get an image by using a camera (ZWO ASI 120mm), at 10Hz (more or less : between 5 and 20Hz), the acquisition time for each frame is between 5 and 20 ms

I wrote a code based on this tutorial: indilib.org/develop/indi-python-bindings.html and it works fine to get one frame (or more).

<strong>My only problem is that to get one frame of 20ms, it takes about 0.5 seconds! </strong>

I use the following function (the initialization is as in the tutorial):
<code>
def one_guide_acquisition(self, exp_time):
temps1 = datetime.now()
self.indiclient.blobEvent.wait()
fits=self.ccd_ccd1[0].getblobdata()
self.ccd_exposure[0].value = 0.02
self.indiclient.blobEvent.clear()
self.indiclient.sendNewNumber(self.ccd_exposure)

print(" axxx ---> temps : ", " " , datetime.now() - temps1)
return fits
</code>

The whole function time is used by the "blobEvent.wait()" function that takes ~0.5 second...

<strong>Is it normal? Should it be much better?
If it's the normal behavior, do you have ideas on how I can do those acquisitions?
</strong>

Thanks ;)
Benjamin

Read More...