콘텐츠로 건너뛰기
STAGING SERVER
DEVELOPMENT SERVER

Line Termination#

Line Termination camera feature를 사용하면 카메라의 차동 전송 라인 끝에 터미네이션 저항을 활성화할 수 있습니다.

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

정보

카메라의 I/O 회로에 대한 자세한 내용은 I/O Control of racer 2 L and racer 2 XL Cameras 항목을 참조하십시오.

기능 사용법#

Line Termination 활성화하기#

  1. 다음 값 중 하나로 LineSelector 파라미터를 원하는 I/O 라인에 설정합니다.
  2. 다음 값 중 하나로 LineTermination 매개변수: true 터미네이션 저항을 활성화하려면 이 매개변수를 설정합니다. 기본적으로 이 매개변수는 다음으로 설정되어 있습니다. false, 즉 line termination이 비활성화되어 있음을 의미합니다.

샘플 코드#

// 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를 사용하여 파라미터를 손쉽게 설정할 수 있습니다.