采用MATLAB与C++混合编程生成扬声器功率实验信号
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:


Mixed Programming Between Matlab and C++ to Generate Power Test Signal
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    针对在C++ Builder中生成白噪等扬声器功率实验所用测试信号的难度较大,以及MATLAB与C++ Builder混编过程中的兼容性问题,文章提出了一种MATLAB与C++混合编程的方法.首先,运用Matlab生成动态链接库DLL;其次,VS调用该DLL文件并编写接口函数以生成可供C++ Builder调用的DLL文件;最后,在C++Builder中设计应用程序以生成扬声器功率实验测试信号.为验证所生成信号的准确性,文章对信号的均值、方差、自相关性、频谱、功率谱密度、概率密度、三分之一倍频程的RTA等参量进行计算,通过将计算结果与标准信号进行对比分析,发现混合编程生成的信号可作为扬声器功率实验信号使用.

    Abstract:

    According to the problem that it is difficult to generate white noise and some other speaker power test signals in C++ Builder and the problems of compatibility in mixed programming between Matlab and C++ Builder, a mixed method combined Matlab with C++ is put forward. Firstly, a dynamic link library DLL is generated in Matlab. Then, VS calls the DLL file and writes interface function to create another DLL file which can be used in C++ Builder. Finally, design the application program to generate the speaker power test signal in C++ Builder. To verify the accuracy of the generated signal, some parameters of signal are calculated, such as the mean, variance, self-correlation, spectrum and power spectral density, the probability density and RTA of one third octave. Comparing the calculated results with the standard signal's, it shows that the signal generated by mixing programming can be used for speaker power test.

    参考文献
    相似文献
    引证文献
引用本文

周静雷,董姣,常诚,李倩.采用MATLAB与C++混合编程生成扬声器功率实验信号.计算机系统应用,2016,25(4):206-209

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2015-08-13
  • 最后修改日期:2015-10-08
  • 录用日期:
  • 在线发布日期: 2016-04-19
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号