×

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

Bi-monthly release with minor bug fixes and improvements

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.
9 years 10 months 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)
9 years 9 months 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.
9 years 9 months ago #1421

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

Time to create page: 1.266 seconds