コンテンツにスキップ

Line Minimum Output Pulse Width#

Line Minimum Output Pulse Widthカメラ機能を使用すると、最小信号幅を達成するために、出力信号の信号幅(「pulse幅」)を増やすことができます。

信号を検出するために特定の最小信号幅が必要な受信機に合わせるために、カメラ出力信号幅の増加が必要になる場合があります。

機能を使用する#

Line Minimum Output Pulse Widthの指定#

  1. Set the LineSelector parameter to the desired camera output line.
  2. Enter a value for the LineMinimumOutputPulseWidth parameter.

仕組み#

カメラ出力信号を確実に検出するために、Line Minimum Output Pulse Width機能を使用すると、出力信号幅を最小幅まで増加させることができます。最小幅はマイクロ秒単位で指定され、最大値は100μsです。

  • 元の信号幅が指定された最小信号幅よりも狭い場合、信号幅は最小幅になるように増加します。
  • 元の信号幅が設定された最小信号幅以上の場合、この機能は無効です。

サンプルコード#

// Select output line Line 2
camera.LineSelector.SetValue(LineSelector_Line2);
// Set the parameter value to 10.0 microseconds
camera.LineMinimumOutputPulseWidth.SetValue(10.0);
INodeMap& nodemap = camera.GetNodeMap();
// Select output line Line 2
CEnumParameter(nodemap, "LineSelector").SetValue("Line2");
// Set the parameter value to 10.0 microseconds
CFloatParameter(nodemap, "LineMinimumOutputPulseWidth").SetValue(10.0);
// Select output line Line 2
camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line2);
// Set the parameter value to 10.0 microseconds
camera.Parameters[PLCamera.LineMinimumOutputPulseWidth].SetValue(10.0);
/* 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 output line Line 2 */
errRes = PylonDeviceFeatureFromString(hdev, "LineSelector", "Line2");
CHECK(errRes);
/* Set the parameter value to 10.0 microseconds */
errRes = PylonDeviceSetFloatFeature(hdev, "LineMinimumOutputPulseWidth", 10.0);
CHECK(errRes);
# Select output line Line 2
camera.LineSelector.Value = "Line2"
# Set the parameter value to 10.0 microseconds
camera.LineMinimumOutputPulseWidth.Value = 10.0

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