跳转到内容

Line Minimum Output Pulse Width#

相机的 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 轻松设置参数。