コンテンツにスキップ
STAGING SERVER
DEVELOPMENT SERVER

Line Selector#

Line Selectorカメラ機能を使用すると、設定するI/Oラインを選択できます。

機能を使用する#

ラインの選択#

To select a line, set the LineSelector parameter to the desired I/O line, e.g., Line1 or LinkSignal1.

Depending on the camera model, the total number of I/O lines, the format of the lines (opto-coupled or GPIO), and the pin assignment may vary. For some camera models, you can also configure I/O link signals (i.e. virtual I/O signals). To find out what your camera model offers, check the "General Specifiations" table and "Physical Interface" section in your camera topic. You can find your camera topic in the "Models" section.

実行可能なタスクは、I/Oラインが入力または出力のいずれかとして機能するかによって異なります。

ラインを選択したら、次の操作を実行できます。

Task 機能
Configuring input filtering for an input line Input Filter (if available)
入力ラインのデバウンサーの設定 Line Debouncer (if available)
出力ラインのソース信号の選択 Line Source
出力ラインの最小pulse幅の設定 Line Minimum Output Pulse Width
ユーザー設定が可能な出力ラインのラインステータスの設定 User Output Value
GPIOラインのラインモードの設定 Line Mode
反転機能の有効化 Line Inverter
単一I/Oラインのステータスの確認 Line Status

サンプルコード#

// Select input line 1
camera.LineSelector.SetValue(LineSelector_Line1);
INodeMap& nodemap = camera.GetNodeMap();
// Select input line 1
CEnumParameter(nodemap, "LineSelector").SetValue("Line1");
// Select input line 1
camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line1);
/* 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 input line 1 */
errRes = PylonDeviceFeatureFromString(hdev, "LineSelector", "Line1");
CHECK(errRes);
# Select input line 1
camera.LineSelector.Value = "Line1"

pylon Viewerを使用して、パラメーターを簡単に設定することもできます。