On boost V cameras, the DeviceReset command doesn't load a configured startup user set. Power-cycle the camera for the startup set to become effective.
// Load the High Gain user setcamera.UserSetSelector.SetValue(UserSetSelector_HighGain);camera.UserSetLoad.Execute();// Load the User Set 1 user setcamera.UserSetSelector.SetValue(UserSetSelector_UserSet1);camera.UserSetLoad.Execute();// Adjust some camera settingscamera.Width.SetValue(600);camera.Height.SetValue(400);camera.ExposureTime.SetValue(3500.0);// Save the settings in User Set 1camera.UserSetSelector.SetValue(UserSetSelector_UserSet1);camera.UserSetSave.Execute();// Designate User Set 1 as the startup setcamera.UserSetDefaultSelector.SetValue(UserSetDefaultSelector_UserSet1);
INodeMap&nodemap=camera.GetNodeMap();// Load the High Gain user setCEnumParameter(nodemap,"UserSetSelector").SetValue("HighGain");CCommandParameter(nodemap,"UserSetLoad").Execute();// Load the User Set 1 user setCEnumParameter(nodemap,"UserSetSelector").SetValue("UserSet1");CCommandParameter(nodemap,"UserSetLoad").Execute();// Adjust some camera settingsCIntegerParameter(nodemap,"Width").SetValue(600);CIntegerParameter(nodemap,"Height").SetValue(400);CFloatParameter(nodemap,"ExposureTime").SetValue(3500.0);// Save the settings in User Set 1CEnumParameter(nodemap,"UserSetSelector").SetValue("UserSet1");CCommandParameter(nodemap,"UserSetSave").Execute();// Designate User Set 1 as the startup setCEnumParameter(nodemap,"UserSetDefaultSelector").SetValue("UserSet1");
// Load the High Gain user setcamera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.HighGain);camera.Parameters[PLCamera.UserSetLoad].Execute();// Load the User Set 1 user setcamera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.UserSet1);camera.Parameters[PLCamera.UserSetLoad].Execute();// Adjust some camera settingscamera.Parameters[PLCamera.Width].SetValue(600);camera.Parameters[PLCamera.Height].SetValue(400);camera.Parameters[PLCamera.ExposureTime].SetValue(3500.0);// Save the settings in User Set 1camera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.UserSet1);camera.Parameters[PLCamera.UserSetSave].Execute();// Designate User Set 1 as the startup setcamera.Parameters[PLCamera.UserSetDefaultSelector].SetValue(PLCamera.UserSetDefaultSelector.UserSet1);
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods *//* Load the High Gain user set */errRes=PylonDeviceFeatureFromString(hdev,"UserSetSelector","HighGain");CHECK(errRes);errRes=PylonDeviceExecuteCommandFeature(hdev,"UserSetLoad");CHECK(errRes);/* Load the User Set 1 user set */errRes=PylonDeviceFeatureFromString(hdev,"UserSetSelector","UserSet1");CHECK(errRes);errRes=PylonDeviceExecuteCommandFeature(hdev,"UserSetLoad");CHECK(errRes);/* Adjust some camera settings */errRes=PylonDeviceSetIntegerFeature(hdev,"Width",600);CHECK(errRes);errRes=PylonDeviceSetIntegerFeature(hdev,"Height",400);CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"ExposureTime",3500.0);CHECK(errRes);/* Save the settings in User Set 1 */errRes=PylonDeviceFeatureFromString(hdev,"UserSetSelector","UserSet1");CHECK(errRes);errRes=PylonDeviceExecuteCommandFeature(hdev,"UserSetSave");CHECK(errRes);/* Designate User Set 1 as the startup set */errRes=PylonDeviceFeatureFromString(hdev,"UserSetDefaultSelector","UserSet1");CHECK(errRes);
# Load the High Gain user setcamera.UserSetSelector.Value="HighGain"camera.UserSetLoad.Execute()# Load the User Set 1 user setcamera.UserSetSelector.Value="UserSet1"camera.UserSetLoad.Execute()# Adjust some camera settingscamera.Width.Value=600camera.Height.Value=400camera.ExposureTime.Value=3500.0# Save the settings in User Set 1camera.UserSetSelector.Value="UserSet1"camera.UserSetSave.Execute()# Designate User Set 1 as the startup setcamera.UserSetDefaultSelector.Value="UserSet1"
// Load the High Gain user setcamera.UserSetSelector.SetValue(UserSetSelector_HighGain);camera.UserSetLoad.Execute();// Load the User Set 1 user setcamera.UserSetSelector.SetValue(UserSetSelector_UserSet1);camera.UserSetLoad.Execute();// Adjust some camera settingscamera.Width.SetValue(600);camera.Height.SetValue(400);camera.ExposureTime.SetValue(3500.0);// Save the settings in User Set 1camera.UserSetSelector.SetValue(UserSetSelector_UserSet1);camera.UserSetSave.Execute();// Designate User Set 1 as the startup setcamera.UserSetDefault.SetValue(UserSetDefault_UserSet1);
INodeMap&nodemap=camera.GetNodeMap();// Load the High Gain user setCEnumParameter(nodemap,"UserSetSelector").SetValue("HighGain");CCommandParameter(nodemap,"UserSetLoad").Execute();// Load the User Set 1 user setCEnumParameter(nodemap,"UserSetSelector").SetValue("UserSet1");CCommandParameter(nodemap,"UserSetLoad").Execute();// Adjust some camera settingsCIntegerParameter(nodemap,"Width").SetValue(600);CIntegerParameter(nodemap,"Height").SetValue(400);CFloatParameter(nodemap,"ExposureTime").SetValue(3500.0);// Save the settings in User Set 1CEnumParameter(nodemap,"UserSetSelector").SetValue("UserSet1");CCommandParameter(nodemap,"UserSetSave").Execute();// Designate User Set 1 as the startup setCEnumParameter(nodemap,"UserSetDefault").SetValue("UserSet1");
// Load the High Gain user setcamera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.HighGain);camera.Parameters[PLCamera.UserSetLoad].Execute();// Load the User Set 1 user setcamera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.UserSet1);camera.Parameters[PLCamera.UserSetLoad].Execute();// Adjust some camera settingscamera.Parameters[PLCamera.Width].SetValue(600);camera.Parameters[PLCamera.Height].SetValue(400);camera.Parameters[PLCamera.ExposureTime].SetValue(3500.0);// Save the settings in User Set 1camera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.UserSet1);camera.Parameters[PLCamera.UserSetSave].Execute();// Designate User Set 1 as the startup setcamera.Parameters[PLCamera.UserSetDefault].SetValue(PLCamera.UserSetDefault.UserSet1);
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods *//* Load the High Gain user set */errRes=PylonDeviceFeatureFromString(hdev,"UserSetSelector","HighGain");CHECK(errRes);errRes=PylonDeviceExecuteCommandFeature(hdev,"UserSetLoad");CHECK(errRes);/* Load the User Set 1 user set */errRes=PylonDeviceFeatureFromString(hdev,"UserSetSelector","UserSet1");CHECK(errRes);errRes=PylonDeviceExecuteCommandFeature(hdev,"UserSetLoad");CHECK(errRes);/* Adjust some camera settings */errRes=PylonDeviceSetIntegerFeature(hdev,"Width",600);CHECK(errRes);errRes=PylonDeviceSetIntegerFeature(hdev,"Height",400);CHECK(errRes);errRes=PylonDeviceSetFloatFeature(hdev,"ExposureTime",3500.0);CHECK(errRes);/* Save the settings in User Set 1 */errRes=PylonDeviceFeatureFromString(hdev,"UserSetSelector","UserSet1");CHECK(errRes);errRes=PylonDeviceExecuteCommandFeature(hdev,"UserSetSave");CHECK(errRes);/* Designate User Set 1 as the startup set */errRes=PylonDeviceFeatureFromString(hdev,"UserSetDefault","UserSet1");CHECK(errRes);
# Load the High Gain user setcamera.UserSetSelector.Value="HighGain"camera.UserSetLoad.Execute()# Load the User Set 1 user setcamera.UserSetSelector.Value="UserSet1"camera.UserSetLoad.Execute()# Adjust some camera settingscamera.Width.Value=600camera.Height.Value=400camera.ExposureTime.Value=3500.0# Save the settings in User Set 1camera.UserSetSelector.Value="UserSet1"camera.UserSetSave.Execute()# Designate User Set 1 as the startup setcamera.UserSetDefault.Value="UserSet1"