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

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 來輕鬆設定參數。