thx8411 wrote: Hi,

Thanks for your tests.

<<
Have you noticed that sometimes the camera returns an frame from the previous exposure? Maybe it is related to the junk frame.
>>

Right, this is the "junk frame" issue. It seams fixed in the last SDK.

Best regards.

Blaise


Hello. I have been using your driver that was released yesterday by Administrator knro.
I works perfectly except for sett the Gain.
Nice work.

I do not know how to write drivers but I noticed something on GitHub in the sthx8411_v305_2 branch.


There is a difference on the line that sets the Gain. A difference from the other settings...

case SVB_GAIN :
// Gain
IUFillNumber(&ControlsN[CCD_GAIN_N], "GAIN", "Gain", "%.f", caps.MinValue, caps.MaxValue, 10, caps.DefaultValue);
IUFillNumberVector(&ControlsNP[CCD_GAIN_N], &ControlsN[CCD_GAIN_N], 1, getDeviceName(), "CCD_GAIN", "Gain", MAIN_CONTROL_TAB, IP_RW, 60, IPS_IDLE);
status = SVBSetControlValue(cameraID, SVB_GAIN , caps.DefaultValue, SVB_FALSE);
if(status != SVB_SUCCESS)
{
LOG_ERROR("Error, camera set gain failed\n");
}
break;

case SVB_CONTRAST :
// Contrast
IUFillNumber(&ControlsN[CCD_CONTRAST_N], "CONTRAST", "Contrast", "%.f", caps.MinValue, caps.MaxValue, caps.MaxValue/10, caps.DefaultValue);
IUFillNumberVector(&ControlsNP[CCD_CONTRAST_N], &ControlsN[CCD_CONTRAST_N], 1, getDeviceName(), "CCD_CONTRAST", "Contrast", MAIN_CONTROL_TAB, IP_RW, 60, IPS_IDLE);
status = SVBSetControlValue(cameraID, SVB_CONTRAST , caps.DefaultValue, SVB_FALSE);
if(status != SVB_SUCCESS)
{
LOG_ERROR("Error, camera set contrast failed\n");
}
break;

For every setting other than Gain, the setting is MaxValue/10

For Gain it reads MaxValue, 10


Is that a problem?

Read More...