|
我將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。
|