摘要
在信号采集和处理过程中,Visual C++存在数据处理和结果显示方面的不足,Matlab存在可视化和数据采集方面的不足,本文在Visual C++环境下调用Matlab Engine函数,有效地解决了这两方面的问题;采用多线程编程技术,同时采集和显示信号,有效地防止了采样过程中的掉点。利用本方法对UA302型采集卡采集到的信号进行处理,得到了满意的结果。
In signal sampling and processing system, VC shows inefficiency in data procession and results demonstration, while Matlab shows its inefficiencyin virtualization and data acquisition. This paper showed a mixed programming used by invoking the Matlab engine in VC environment could solve two problems effectively.Multi-thread technology was developed to realize the synchronization of signal sampling and demonstration, and prevented the signal gathering from missing sample spots. An example of a sine wave acquired from UA302 using this technique was also introduced in the paper, which has been proved to be feasible in practice.
出处
《中国测试技术》
2006年第3期82-85,共4页
CHINA MEASUREMENT & TESTING TECHNOLOGY
基金
重庆市重点科技项目(9293)