模拟信号和脉冲信号问题
我用NI采集卡一模拟通道来采集一电压信号,用计数器对脉冲信号进行个数的计数。我把它们采集放在同一个while循环里面。但是每次都是弹出溢出覆盖的错误。我查资料,论坛上别人说的解决办法等改了缓存区的大小,就不出错了。但是模拟信号采集很慢,而且信号波动特别大。请问,这是什么原因呢?另外,到底模拟信号和脉冲信号能放在同一个while循环里吗?我附上那个出错的对话框。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:
页:
[1]