Values of parameters that include the term "Selector" in their names are not included (e.g., GainSelector). Exceptions: TestImageSelector, GammaSelector, LightSourceSelector.
The value of the DeviceUserID parameter is not included.
The value of the GevGVSPExtendedIDMode parameter is not included.
即: HighGain user set contains the same parameter values as the Default user set, with the following exception:
If available, the GainRaw parameter is set to a value that increases the gain by 6 dB compared to the Default user set. The actual parameter value varies by camera model.
You can use the UserSet1, UserSet2, and UserSet3 user sets to load and save your own camera settings.
Initially, these user sets contain the same parameter values as the Default user set. You can overwrite those values with your own settings to create a user set that is customized for your application.
// 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"