NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

请教daqmx 连续高频采样

pci 6115 卡  10Ms/s 
信号频率范围100khz--1Mhz  采样频率设为5MHz  采样时间约1分钟
 
运行labview自带example 
Help > Find Examples > Browse > Hardware Input and Output > DAQmx > Analog Measurements >Cont Acq&Graph Voltage-Int Clk.vi
a.当设置 采样频率5000000hz   采样点500000
报错如下:
NI-DAQ LV: your application was unable to retrieve data from the backgroundacquisition buffer fast enough so the untrieved data was overwritten with new data. To prevent this error, yu might increase teh buffer size of teh background,acquisition buffer, increase the amount of data you read from it per call to the read function/VI,,.
 
b.当设置 采样频率50000hz   采样点5000
运行正常
 
 
是不是要设置buffer size  但是daqmx 怎么设?
0 项奖励
1 条消息(共 6 条)
5,325 次查看

problem with buffer,and sample rate/samples per channel read is not match. the processor is not fast enough to read data from buffer.

my suggestion is:

除了提高计算机性能(^_^):

 a,适当增加读的点数,(DAQmx Data Acquisition/DAQmx Timing.vi中的引脚rate ),但是不能太大;

b,增加buffer size,(DAQmx Data Acquisition/Advanced Task Options/DAQmx configure input Buffer &DAQmx configure output Buffer中的buffer size),同样不要太大;

c,如果同步要求不高,可以先将数据存到文件,再做文件数据读取处理;

d, 将数据读取、处理分开用两个循环,就是先将数据读入到一个队列(循环1),再将数据从队列中读出来(循环2),可用all functions/advanced/synchronization/queue operations下的vi,并参考帮助或例子编程,请注意,当队列越来越大时反而会影响循环2处理的速度;每个方法都会有利有弊.

0 项奖励
2 条消息(共 6 条)
5,315 次查看

tnanks for your suggestion   

 kaoya

可能计算机的配置比较低  Pentium III   128RAM

我的程序比较简单,只有采集和保存   。处理程序另外做

pci 6115   Onboard Memory   为32M samples       buffer size 最大可设为多少?

 

我换台计算机试一下

0 项奖励
3 条消息(共 6 条)
5,306 次查看

for more infomation please refer to the buffer size discussion of 6115.

http://forums.ni.com/ni/board/message?board.id=170&message.id=140978&requireLogin=False

do use traditional daq or daqmx ?

0 项奖励
4 条消息(共 6 条)
5,303 次查看
发贴前,这个贴我认真看过
我想用daqmx连续采集,因为要采集1min
用有限采集方法是没有问题的,只能采几秒
0 项奖励
5 条消息(共 6 条)
5,298 次查看

这个问题很有典型性

数据从板卡到RAM用的是你设置的buffer,每次读取得速度,采样频率都要匹配的

否则要么buffer满掉,数据被擦掉

以前做过试验,适当加大buffer和每次读取size都有帮助

不过关键还是你处理数据是否跟的上

用daqmx好设一点

0 项奖励
6 条消息(共 6 条)
5,237 次查看