NI-5112示波器使用NI-SCOPE驅動程式跳出Error -1074118628



主要軟體:
主要軟體版本: 3.5
主要軟體修正版本: N/A
次要軟體: Driver Software>>NI-SCOPE
硬體: Modular Instruments>>High-Speed Digitizers (Scopes)>>AT-5102, Modular Instruments>>High-Speed Digitizers (Scopes)>>PCI-5102, Modular Instruments>>High-Speed Digitizers (Scopes)>>DAQCard-5102, Modular Instruments>>High-Speed Digitizers (Scopes)>>PXI-5102, Modular Instruments>>High-Speed Digitizers (Scopes)>>PCI-5112, Modular Instruments>>High-Speed Digitizers (Scopes)>>PXI-5112, Modular Instruments>>High-Speed Digitizers (Scopes)>>PCI-5911, Modular Instruments>>High-Speed Digitizers (Scopes)>>USB-5102, Modular Instruments>>High-Speed Digitizers (Scopes)>>PXI-5620, Modular Instruments>>High-Speed Digitizers (Scopes)>>PXI-5621

問題: 在我執行程式比較長的時間後,為什麼NI-5112示波器會跳Error -1074118628 Timeout Checking Status? 這個時間週期一般在24小時以上,但很不一定。

解答: 當您長時間反覆的呼叫fetch的時候,有可能會發生race condition的情況。為了避免以上的錯誤,可以將fetch的timeout時間設定比0大,並且fetch更大的資料量,來使呼叫fetch的次數下降。或者,您可以降低擷取迴圈的速度,使的呼叫fetch時,有更多更多資料可以讀。

在Fetch Forever的範例程式裡面,fetch的timeout值被設為0,告訴NI-SCOPE去fetch所有可以讀出的資料。這表示fetch的命令以最快的速度被呼叫在application development enviroment (ADE)是被允許的。但設定較大的timeout值,是有助於避免掉上述的問題的。

相關連結: KnowledgeBase 3TBENTOR: Timeout Errors When Running the Calibration Procedure for the NI-5112
KnowledgeBase 27CCBKV2: NI-5112 Errors with the Example VIs that Ship with the NI-SCOPE Driver

附加檔案:





報告日期: 07/20/2009
最後更新: 08/24/2015
文件偏號: 4ZJF5BDE