Hi,
sorry to hear that the analysis is giving trouble. Usually the 'loop and die' behaviour you are seeing happens when the exposure that is being set is not actually being faithfully applied by the camera. SharpCap expects that if it increases the exposure by 5% then the brightness will increase by 5% (at least once any pedestal level is taken care of). Sometimes I find cameras where the SDK rounds the exposure in some way, so that small changes have no effect, and then another small change has a much larger than expected effect (once you get past the next rounding threshold). There is at least one that rounds exposures above 1s to the nearest 0.2s if I remember correctly
You may be able to get around this by a couple of means
1) brighter light levels during the 'measuring gain range' phase. During this phase, if the exposure gets too short (too near the minimum value), SharpCap will decide to limit the gain range it is going to measure rather than try higher gains.
2) darker light levels during the measureing relative gain stage - that will increase the exposures being used and perhaps make any issues with the exposure not being 100% accurate small enough to not matter.
In both cases, you should aim for constant light levels during that stage, but it's not critical that the light levels during the stage are the same as those for the preceeding or following stages.
I am not quite sure what to make of the histogram effect you are seeing - could you post screenshots of both, as maybe that will make things clearer.
cheers,
Robin
PS. Also, make sure you have the very latest SharpCap 4.0 (or beta 4.1) when running the sensor analysis - there have been improvements to the reliability of it in the last few months.