×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

CCD Not Taking Pictures

  • Posts: 2
  • Thank you received: 0
I am trying to write a python program that takes 10 pictures in a row and renames them as they are taken, but when I run the script, some of the pictures are missing. I end up getting Picture0, Picture1, Picture2, Picture4, Picture6, Picture7, Picture8, Picture9, or something of the like where a few numbers are skipped. I have successfully run the code once or twice where all the pictures came through, but most times, I end up with fewer pictures than I should. The python program calls the following script to take the pictures and runs 10 times:
indi_getprop -t 17 &
indi_setprop "SBIG CCD.CCD_EXPOSURE.CCD_EXPOSURE_VALUE=$1"
sleep 15
mv "SBIG CCD.CCD1.CCD1.fits" ~/mydirectory/"$2.fits"
sleep 2
Do I need an even longer delay between some of the commands, or is there some other issue here?
Last edit: 7 years 9 months ago by Silver Frank. Reason: Forgot to include a detail about the script
7 years 9 months ago #9120

Please Log in or Create an account to join the conversation.

It's better to use INDI Python client than to use scripts like these. At any rate, you should check the state of CCD_EXPOSURE, once it turns from BUSY to OK, then you can download the image. Never make any assumptions solely on timing.
7 years 9 months ago #9121

Please Log in or Create an account to join the conversation.

Time to create page: 0.912 seconds