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

Line Termination#

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

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