采样频率是指PC程序中每秒钟采用的点数吗?---------------------------------------------------不是,是指采集卡每秒钟采集的次数.
最终存储的数据长度---------只与你在程序中存储的数据长度有关.
采集卡采集到的数据不是采一次传一次,而是采集到一定数量传一次,这一定数量就是由采样点数决定的.
板卡每次传到PC中的点数(采样点数)的间隔时间应该远远小于1s吗?-------------------这就取决你的实际应用了,比如你要求你的程序中对数据更新的要求不是很高,可以很长时间再传一次,当然这时要设置较低的采样频率,否则会溢出.
Please refer to the Daqmx help file as following:
If your acquisition is finite (sample mode on the Timing function/VI set to Finite Samples), NI-DAQmx allocates a buffer equal in size to the value of the samples per channel attribute/property. For example, if you specify samples per channel of 1,000 samples and your application uses two channels, the buffer size would be 2,000 samples. Thus, the buffer is exactly big enough to hold all the samples you want to acquire.
If the acquisition is continuous (sample mode on the Timing function/VI set to Continuous Samples), NI-DAQmx allocates a buffer equal in size to the value of the samples per channel attribute/property, unless that value is less than the value listed in the following table. If the value of the samples per channel attribute/property is less than the value in the table, NI-DAQmx uses the value in the table.
Sample Rate | Buffer Size |
---|---|
no rate specified | 10 kS |
0–100 S/s | 1 kS |
100–10,000 S/s | 10 kS |
10,000–1,000,000 S/s | 100 kS |
>1,000,000 S/s | 1 MS |
You can override the default buffer size by calling the Input Buffer Config function/VI.
NI-DAQmx does not create a buffer when the sample mode on the Timing function/VI is set to hardware-timed single point.
Note Using very large buffers may result in diminished system performance due to excessive reading and writing between memory and the hard disk. Reducing the size of the buffer or adding more memory to the system can reduce the severity of these problems. |