콘텐츠로 바로 가기
스테이징 서버
개발 서버

트리거된 이미지 취득(dart E)#

카메라가 트리거된 이미지 취득으로 구성된 경우, 특정 시점에 이미지 캡처를 트리거할 수 있습니다.

대부분의 최신 머신 비전 애플리케이션은 트리거된 이미지 취득을 사용합니다.

Using the Feature#

하드웨어 및 소프트웨어 트리거#

카메라가 하드웨어 트리거용으로 구성된 경우, 카메라의 입력 라인 중 하나에 인가되는 전기 신호가 트리거 신호로 작용할 수 있습니다.

카메라가 소프트웨어 트리거로 구성된 경우, 소프트웨어 명령 또는 신호가 트리거 신호로 작용합니다. 소프트웨어 명령은 pylon API를 사용하여 실행할 수 있습니다.

설정 측면에서 하드웨어와 소프트웨어 트리거의 유일한 차이점은 Trigger Source입니다. 하드웨어 트리거의 경우 하드웨어 Trigger Source를 선택해야 합니다. 소프트웨어 트리거의 경우 소프트웨어 Trigger Source를 선택해야 합니다.

또한 Trigger Activation 모드 선택과 같이 소프트웨어 트리거에는 적용되지 않는 설정 단계도 있습니다.

트리거된 이미지 취득 구성#

트리거된 이미지 Acquisition을 구성하려면:

  1. 다음 파라미터를 TriggerMode 파라미터(Parameter) On 트리거된 이미지 취득을 활성화하려면 다음을 수행합니다.
  2. 트리거 구성:
    1. 다음 파라미터를 TriggerSource 정의할 파라미터 어떤 신호가 트리거를 트리거합니다.
    2. 해당하는 경우 다음을 설정합니다: TriggerActivation 정의할 파라미터 어떤 신호 전환에서 트리거를 트리거합니다.

정보

  • 다음 제한 요인 중 하나 또는 두 가지를 초과하는 속도로 카메라를 트리거하지 마십시오.

    • 현재 카메라 설정에 허용되는 최대 프레임 레이트입니다. 카메라가 수신할 준비가 되지 않은 상태에서 Frame Start 트리거 신호를 적용하면 해당 신호는 무시됩니다.
    • 호스트 컴퓨터의 데이터 전송, 저장 또는 둘 다에 대한 용량 한계. 호스트 컴퓨터가 처리할 수 있는 것보다 더 많은 이미지를 획득하려고 하면 프레임이 누락될 수 있습니다.

Trigger Sources#

다음 항목을 사용하여 Trigger Source을(를) 설정할 수 있습니다. TriggerSource parameter를 사용하십시오.

이는 트리거가 트리거되는 방식을 정의합니다.

사용 가능한 Trigger Source는 다음과 같습니다.

하드웨어 Trigger Source#

  • Line1: 선택된 트리거는 I/O 라인 1에 전기 신호를 인가하여 트리거할 수 있습니다.
  • PeriodicSignal1: 선택한 Trigger는 Periodic Signal feature.

소프트웨어 Trigger Source#

  • Software: 선택한 Trigger는 TriggerSoftware command를 pylon API를 통해 실행하여 트리거할 수 있습니다.

Trigger Activation 모드#

활성화 모드는 다음을 사용하여 설정할 수 있습니다. TriggerActivation parameter를 사용하십시오.

이 설정은 하드웨어 트리거에만 적용됩니다. 선택한 Trigger를 활성화하는 신호 전환(signal transition)을 정의합니다. 예를 들어, 트리거 신호가 하강할 때 트리거가 활성화되도록 지정할 수 있습니다.

사용 가능한 Trigger Activation 모드는 다음과 같습니다.

  • LevelHigh: 트리거가 활성화 상태를 유지합니다. 다음 조건인 동안: 트리거 신호가 다음 상태임: High.
  • LevelLow: 트리거가 활성화 상태를 유지합니다. 다음 조건인 동안: 트리거 신호가 다음 상태임: Low.

Sample Code#

// Enable triggered image acquisition for the Frame Start trigger
camera.TriggerMode.SetValue(TriggerMode_On);
// Set the trigger source to Line 1
camera.TriggerSource.SetValue(TriggerSource_Line1);
// Set the trigger activation mode to level high
camera.TriggerActivation.SetValue(TriggerActivation_LevelHigh);
INodeMap& nodemap = camera.GetNodeMap();
// Enable triggered image acquisition for the Frame Start trigger
CEnumParameter(nodemap, "TriggerMode").SetValue("On");
// Set the trigger source to Line 1
CEnumParameter(nodemap, "TriggerSource").SetValue("Line1");
// Set the trigger activation mode to level high
CEnumParameter(nodemap, "TriggerActivation").SetValue("LevelHigh");
// Enable triggered image acquisition for the Frame Start trigger
camera.Parameters[PLCamera.TriggerMode].SetValue(PLCamera.TriggerMode.On);
// Set the trigger source to Line 1
camera.Parameters[PLCamera.TriggerSource].SetValue(PLCamera.TriggerSource.Line1);
// Set the trigger activation mode to level high
camera.Parameters[PLCamera.TriggerActivation].SetValue(PLCamera.TriggerActivation.LevelHigh);
/* 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 */
/* Enable triggered image acquisition for the Frame Start trigger */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerMode", "On");
CHECK(errRes);
/* Set the trigger source to Line 1 */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerSource", "Line1");
CHECK(errRes);
/* Set the trigger activation mode to level high */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerActivation", "LevelHigh");
CHECK(errRes);
# Enable triggered image acquisition for the Frame Start trigger
camera.TriggerMode.Value = "On"
# Set the trigger source to Line 1
camera.TriggerSource.Value = "Line1"
# Set the trigger activation mode to level high
camera.TriggerActivation.Value = "LevelHigh"

pylon Viewer를 사용하여 파라미터를 손쉽게 설정할 수도 있습니다.