Line Minimum Output Pulse Width#
針對某些可能需要特定最小訊號寬度才能偵測訊號的接收器,可能需要增加相機輸出訊號的寬度。
使用功能#
指定 Line Minimum Output Pulse Width#
- 將相機中的
LineSelector參數設定至所需的相機輸出線路。 - 為
LineMinimumOutputPulseWidth參數中選擇性地指定 HTML 記錄檔 (*.html) 的路徑與檔名。
運作原理#
為確保能夠可靠地偵測相機輸出訊號,Line Minimum Output Pulse Width 功能可讓您將輸出訊號寬度增加至最小寬度。最小寬度以微秒為單位指定,最大值可達 100 μs。
- 若原始訊號寬度小於指定的最小訊號寬度,系統會增加訊號寬度以達到最小寬度。
- 若原始訊號寬度大於或等於設定的最小訊號寬度,則此功能不會生效。
範例程式碼#
/* 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);
您也可以 use the pylon Viewer 來輕鬆設定參數。