콘텐츠로 바로 가기
STAGING SERVER
DEVELOPMENT SERVER

Auto Function Profile (dart E)#

Auto Function Profile 카메라 기능은 카메라가 자동으로 조절될 때 Gain과 Exposure Time이 어떻게 균형을 유지할지 정의합니다.

기능 사용#

Auto Function Profile 설정#

Auto Function Profile 설정 방법:

  1. 파라미터를 원하는 Gain Auto auto function and the Exposure Auto 자동 기능을 Continuous.
  2. 파라미터를 원하는 AutoFunctionProfile 파라미터를 설정하십시오:
    • AntiFlicker50Hz: 50 Hz 전력선 주파수에 대한 플리커 저감을 활성화합니다(예: 유럽 적용).
    • AntiFlicker60Hz: 60 Hz 전력선 주파수에 대한 플리커 저감을 활성화합니다(예: 북미 적용).
    • AntiFlickerAuto: 전력선 주파수 자동 감지 기능을 사용하여 플리커 저감을 활성화합니다.
    • MinimizeExposureTime: 자동 조절 과정에서 Exposure Time을 가능한 한 낮게 유지합니다.
    • MinimizeGain (기본값): 자동 조절 과정에서 Gain을 가능한 한 낮게 유지합니다.

샘플 코드#

// Set the auto function profile to Minimize Gain
camera.AutoFunctionProfile.SetValue(AutoFunctionProfile_MinimizeGain);
// Set the auto function profile to Minimize Exposure Time
camera.AutoFunctionProfile.SetValue(AutoFunctionProfile_MinimizeExposureTime);
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.GainAuto.SetValue(GainAuto_Continuous);
camera.ExposureAuto.SetValue(ExposureAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Set the auto function profile to Minimize Gain
CEnumParameter(nodemap, "AutoFunctionProfile").SetValue("MinimizeGain");
// Set the auto function profile to Minimize Exposure Time
CEnumParameter(nodemap, "AutoFunctionProfile").SetValue("MinimizeExposureTime");
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
CEnumParameter(nodemap, "GainAuto").SetValue("Continuous");
CEnumParameter(nodemap, "ExposureAuto").SetValue("Continuous");
// Set the auto function profile to Minimize Gain
camera.Parameters[PLCamera.AutoFunctionProfile].SetValue(PLCamera.AutoFunctionProfile.MinimizeGain);
// Set the auto function profile to Minimize Exposure Time
camera.Parameters[PLCamera.AutoFunctionProfile].SetValue(PLCamera.AutoFunctionProfile.MinimizeExposureTime);
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.Parameters[PLCamera.GainAuto].SetValue(PLCamera.GainAuto.Continuous);
camera.Parameters[PLCamera.ExposureAuto].SetValue(PLCamera.ExposureAuto.Continuous);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Set the auto function profile to Minimize Gain */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionProfile", "MinimizeGain");
CHECK(errRes);
/* Set the auto function profile to Minimize Exposure Time */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionProfile", "MinimizeExposureTime");
CHECK(errRes);
/* Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "GainAuto", "Continuous");
CHECK(errRes);
errRes = PylonDeviceFeatureFromString(hdev, "ExposureAuto", "Continuous");
CHECK(errRes);
# Set the auto function profile to Minimize Gain
camera.AutoFunctionProfile.Value = "MinimizeGain"
# Set the auto function profile to Minimize Exposure Time
camera.AutoFunctionProfile.Value = "MinimizeExposureTime"
# Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.GainAuto.Value = "Continuous"
camera.ExposureAuto.Value = "Continuous"

pylon Viewer를 사용하여 매개변수를 간편하게 설정할 수도 있습니다.