為什麼會出現-200288的錯誤訊息?



主要軟體:
主要軟體版本: 7.0
主要軟體修正版本: N/A
次要軟體: Measurement Studio>>Measurement Studio for Visual C++

問題:

我將DAQ作業設為有限觸發模式,並且我想要重複的做有限觸發。在兩個觸發中間我有足夠時間,因此我使用DAQmx Start Task VI以軟體的方式來做。然而,當我正在接收觸發時,我收到-200288的錯誤訊息:


Attempted to write a sample beyond the final sample generated. The generation has stopped, therefore the sample specified by the combination of position and offset will never be available.

Specify a position and offset which selects a sample up to, but not beyond, the final sample generated. The final sample generated can be determined by querying the total samples generated after a generation has stopped.

為什麼會收到這樣的錯誤訊息?



解答:

這個錯誤常常發生在被設定為軟體重複觸發(software retriggering)的類比輸出上。軟體重複觸發是指,觸發在軟體內收到重新啟動的任務。這和硬體觸發不一樣的地方在於,重複觸發是在硬體上做的。

在Traditional NI-DAQ中,您只需要呼叫start 指令來重新啟動觸發。


在NI-DAQmx中,您必須在重新啟動觸發前,做讀入(類比輸入)及寫出(類比輸出)後呼叫DAQmx Stop Task VI。



相關連結: Knowledge Base 2W6HG9NQ: How Can I Retrigger an Acquisition on an NI DSA Board?
Knowledge Base 15JBOEWW: How Can I Perform a Retriggerable Acquisition?

附加檔案:





報告日期: 03/23/2004
最後更新: 12/10/2014
文件偏號: 37MGG4IP