论文部分内容阅读
介绍一种在LabVIEW下使用普通数据采集卡实现精确定时数据采集的方法。该方法使用LabVIEW与外部代码进行连接的动态连接库机制 ,实现对数据采集卡的I/O控制 ;利用Windows新的多媒体定时器的定时功能 ,实现准确到 1ms的定时采样。经试验验证 ,在使用 10 0 0Hz的采样频率采集 5 0Hz的标准锯齿波时 ,定时误差小于 0 0 1%。实践表明 ,此机制高效、易行 ,使LabVIEW强大的信号处理功能得到了充分的利用
Introduce a kind of method that realizes accurate timing data acquisition using common data acquisition card under LabVIEW. The method uses the dynamic connection library mechanism of connecting LabVIEW with external code to realize the I / O control of the data acquisition card. The timing function of the new multimedia timer of Windows is adopted to realize the accurate sampling to 1 ms. It is verified through experiments that the timing error is less than 0.01% when a standard sawtooth wave of 50Hz is collected using a sampling frequency of 100Hz. Practice shows that this mechanism is efficient and easy to use, making LabVIEW powerful signal processing functions fully utilized