×

INDI Library v1.9.6 Released (21 May 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

From Client, Changing exposure duration | SOLVED

  • Posts: 10
  • Thank you received: 0
Extended existing client, tutorial_six, added in main():
camera_client->setBLOBMode(B_ALSO, MYCCD, NULL);
while (1)
{
sleep(10);
printf("Main: startBlob()\n");
camera_client->takeExposure();
}
cout << "Press any key to terminate the client.\n";
also changed MyClient::takeExposure()
to:
IDLog("Taking a 1 second exposure.\n"); // now at 0.1 sec
//was: ccd_exposure->np[0].value = 1;
ccd_exposure->np[0].value = 0.1;
ccd_exposure->nnp = 1;
sendNewNumber(ccd_exposure);

But does not change exposure value of 1. Exposure stays as 1 second. What needs to be done to change exposure?

Thanks in advance.
8 years 1 week ago #1372

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

I just tested with tutorial_three (Simple CCD) and tutorial_six (Simple Client) and it works fine (there was an issue with tutorial_three it was updated to latest INDI API). After the update, I just changed 1 to 5:

ccd_exposure->np[0].value = 5;

and it worked fine. Why are you putting ccd_exposure->nnp = 1;? the only values need updating is (ccd_exposure->np[0].value)
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
8 years 1 week ago #1402

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

  • Posts: 10
  • Thank you received: 0
Solved: Rebuilt Indi for new board; after changing exposure to 0.1 worked fine.
Did the "ccp->exposure->nnp=1;" after looking at the code, which seened ti use the nnp variable it seemed to me to determine whether to send the exposure value[0].
Everything working fine now. Thanks.
8 years 5 days ago #1421

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

Time to create page: 0.542 seconds