// Determine the current exposure timedoubled=camera.ExposureTime.GetValue();// Set the exposure time to 3500 microsecondscamera.ExposureTime.SetValue(3500.0);
INodeMap&nodemap=camera.GetNodeMap();// Determine the current exposure timedoubled=CFloatParameter(nodemap,"ExposureTime").GetValue();// Set the exposure time to 3500 microsecondsCFloatParameter(nodemap,"ExposureTime").SetValue(3500.0);
// Determine the current exposure timedoubled=camera.Parameters[PLCamera.ExposureTime].GetValue();// Set the exposure time to 3500 microsecondscamera.Parameters[PLCamera.ExposureTime].SetValue(3500.0);
/* 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 */doubled=0;/* Determine the current exposure time */errRes=PylonDeviceGetFloatFeature(hdev,"ExposureTime",&d);CHECK(errRes);/* Set the exposure time to 3500 microseconds */errRes=PylonDeviceSetFloatFeature(hdev,"ExposureTime",3500.0);CHECK(errRes);
# Determine the current exposure timed=camera.ExposureTime.Value# Set the exposure time to 3500 microsecondscamera.ExposureTime.Value=3500.0
/* 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 */doubled=0;/* Determine the current exposure time */errRes=PylonDeviceGetFloatFeature(hdev,"ExposureTime",&d);CHECK(errRes);/* Set the exposure time to 3500 microseconds */errRes=PylonDeviceSetFloatFeature(hdev,"ExposureTime",3500.0);CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.