NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

Error -200279

已解決!
前往解決方案
 
   

版本:labview 8.0

作業系統:XP

硬體:USB-6229

問題:

Error -200279 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:5

Possible reason(s):

Measurements: Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.

Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.

Property: RelativeTo
Corresponding Value: Current Read Position

Property: Offset
Corresponding Value:


Task Name: _unnamedTask<6D>

 

原本將sample rate 取1kHZ ,sample to read 是100 ,但一下子就出現在上述的問題。

後來將 rate 取100HZ,也是出現上述的問題。

請問該如何解決呢?

0 積分
1 條訊息(共 5 條)
8,376 檢視

所附的VI,其中DAQ Assistant的sample to read設為100,time為1k。

的話就不會有上述的情況,但是這樣的取樣數對我來說太少了,沒辦法看出他的輸出電壓變化??

還是該如何調配呢??

謝謝

0 積分
2 條訊息(共 5 條)
8,368 檢視

試試下面 

sample rate =1k

sample to read = 1k

0 積分
3 條訊息(共 5 條)
8,358 檢視

若是把上述的兩個都取1k問題就解決了。

但是假設rate取10k;sample to read取1k. 就沒辦法了??

有看到DAQ裡有一個CLOCK的東西,不知道該如何設置呢??

我使用的是labview 8

     DAQ:usb-6229

     系統:XP

0 積分
4 條訊息(共 5 條)
8,349 檢視
解決方案
接受者 agersir

你可以去 開始 >> 所有程式 >> National Instruments >> NI-DAQ 這個資料夾中找尋 NI-DAQmx C Reference Help,在裡面可以看到要怎麼設定。可以參考附圖:

 

0 積分
5 條訊息(共 5 條)
8,340 檢視