跳至內容
測試伺服器
開發伺服器

Line Minimum Output Pulse Width#

Line Minimum Output Pulse Width 相機功能可讓您增加輸出訊號的訊號寬度(「脈衝寬度」),以達到最小訊號寬度。

針對某些可能需要特定最小訊號寬度才能偵測訊號的接收器,可能需要增加相機輸出訊號的寬度。

使用功能#

指定 Line Minimum Output Pulse Width#

  1. 將相機中的 LineSelector 參數設定至所需的相機輸出線路。
  2. 為 LineMinimumOutputPulseWidth 參數中選擇性地指定 HTML 記錄檔 (*.html) 的路徑與檔名。

運作原理#

為確保能夠可靠地偵測相機輸出訊號,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

您也可以 use the pylon Viewer 來輕鬆設定參數。