• 多线程VC++和Matlab混编在信号采集和处理中的应用
    《中国测试技术》杂志社csjs

    李宁,秦树人,吴莹
    (重庆大学测试中心,重庆 400044)
     
    摘要:在信号采集和处理过程中,Visual C++存在数据处理和结果显示方面的不足,Matlab存在可视化和数据采集方面的不足,本文在Visual C++环境下调用Matlab Engine函数,有效地解决了这两方面的问题;采用多线程编程技术,同时采集和显示信号,有效地防止了采样过程中的掉点。利用本方法对UA302型采集卡采集到的信号进行处理,得到了满意的结果。
     
    关键词:Visual C++;Matlab Engine;多线程技术;UA302采集卡
     
    中图分类号:TP311.5文献标识码:A文章编号:1672-4984(2006)03-0082-04
     
    Singal sampling and processing based on mixed programming with multi-thread VC++ and Matlab
    LI Ning,QIN Shu-ren,WU Ying
    (Test Center, Chongqing University,Chongqing 400044,China)
     
    Abstract:In signal sampling and processing system, VC shows inefficiency in data procession and results demonstration, while Matlab shows its inefficiency in 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.
     
    Key words:Visual C++;Matlab engine; Multi-thread technology; UA302


     
     
    网站首页  |  关于我们  |  联系我们  |  广告服务  |  版权隐私  |  友情链接  |  站点导航