thank you, I've tried a few variations in the code, however I can't seem to get the ASI_AUTO_MAX_EXP to work properly. I noticed another person was experiencing something similar, and hence have included a sample of the code I'm using, which for reference is taken from the example All Sky Camera provided by Thomas Jacquin. For reference I'm trying to set auto exposure during the day, and 4s during the night.
std: result = exec(sunwaitCommand.c_str());
result.erase(std:(result.begin(),result.end(), '\n'), result.end());
if (result == "NIGHT"){
asiExposure = 4000000;
ASISetControlValue(CamNum, ASI_EXPOSURE, asiExposure, ASI_FALSE);
}
else if (result == "DAY"){
ASI_Bool bAuto = ASI_TRUE
asiExposure = 1;
ASISetControlValue(CamNum, ASI_AUTO_MAX_EXP, asiExposure, bAuto);
}
I've tried different variations of the code, however in all cases it revert to the asiExposure value?
all advice greatly appreciated!
thank you