コンテンツにスキップ
ステージングサーバー
開発サーバー

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 parameter を希望の I/O ラインに設定します。
  2. パラメーターを LineTermination パラメータを次のように設定: true 終端抵抗を有効にします。デフォルトでは、パラメーターは falseに設定されています(つまり、ライン終端は無効になっています)。

サンプルコード#

// 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を使用して、パラメーターを簡単に設定することもできます。