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

Line Termination#

Line Termination 카메라 기능을 사용하면 카메라의 차동 전송선 말단에 종단 저항을 활성화할 수 있습니다.

이 카메라의 GPIO 라인은 RS-422 차동 신호를 전송하도록 설계되었습니다. 전송 라인 끝에 120 Ω 저항을 연결하면 신호 반사를 방지하고 신호 무결성을 보장할 수 있습니다.

정보

카메라의 I/O 회로에 대한 자세한 내용은 “ racer 2 L 및 racer 2 XL 카메라의 I/O 제어” 항목을 참조하십시오.

Using the Feature#

[활성화] Line Termination#

  1. 다음 파라미터를 LineSelector 파라미터를 원하는 I/O 라인에 설정합니다.
  2. 다음 파라미터를 LineTermination 파라미터(Parameter) true 종단 저항을 활성화하기 위해. 기본적으로 이 매개변수는 false, 즉, 줄 끝 처리가 비활성화되어 있습니다.

Sample Code#

// Select Line 1
camera.LineSelector.SetValue(LineSelector_Line1);
// Enable the line termination for the I/O line selected
camera.BslLineTermination.SetValue(true);
// Disable the line termination for the I/O line selected
camera.BslLineTermination.SetValue(false);
INodeMap& nodemap = camera.GetNodeMap();
// Select Line 1
CEnumParameter(nodemap, "LineSelector").SetValue("Line1");
// Enable the line termination for the I/O line selected
CBooleanParameter(nodemap, "BslLineTermination").SetValue(true);
// Disable the line termination for the I/O line selected
CBooleanParameter(nodemap, "BslLineTermination").SetValue(false);
// Select Line 1
camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line1);
// Enable the line termination for the I/O line selected
camera.Parameters[PLCamera.BslLineTermination].SetValue(true);
// Disable the line termination for the I/O line selected
camera.Parameters[PLCamera.BslLineTermination].SetValue(false);
/* 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 */
/* Select Line 1 */
errRes = PylonDeviceFeatureFromString(hdev, "LineSelector", "Line1");
CHECK(errRes);
/* Enable the line termination for the I/O line selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "BslLineTermination", 1);
CHECK(errRes);
/* Disable the line termination for the I/O line selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "BslLineTermination", 0);
CHECK(errRes);

또한 pylon Viewer를 사용하여 파라미터를 간편하게 설정할 수 있습니다.