Skip to content

Commit

Permalink
take out preset of binning and shutter to prevent crash with new camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenpu Zhang committed Apr 22, 2024
1 parent 76799a1 commit 0bc928e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ChimeraVimbaCam/Source/MakoSettingControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ void MakoSettingControl::initialzePreset()
{
std::string errstr("");
std::string modeName = getFeatureValue<std::string>("DeviceModelName", errstr);
if (modeName.find("G-319B") != std::string::npos || modeName.find("G-125B") != std::string::npos) { // this is a global shutter camera, does not have "SensorShutterMode" feature
if (modeName.find("G-319B") != std::string::npos || modeName.find("G-125B") != std::string::npos || modeName.find("G-507B") != std::string::npos) { // this is a global shutter camera, does not have "SensorShutterMode" feature
}
else {
setFeatureValue("SensorShutterMode", "GlobalReset", errstr);
setFeatureValue("BinningHorizontalMode", "Sum", errstr);
setFeatureValue("BinningVerticalMode", "Average", errstr);
//setFeatureValue("SensorShutterMode", "GlobalReset", errstr);
//setFeatureValue("BinningHorizontalMode", "Sum", errstr);
//setFeatureValue("BinningVerticalMode", "Average", errstr);
}
setFeatureValue("AcquisitionMode", "Continuous", errstr);
setFeatureValue("Gamma", 1.0, errstr);
Expand Down

0 comments on commit 0bc928e

Please sign in to comment.