###
DOI:
计算机系统应用英文版:2016,25(4):206-209
本文二维码信息
码上扫一扫!
采用MATLAB与C++混合编程生成扬声器功率实验信号
(西安工程大学 电子信息学院, 西安 710048)
Mixed Programming Between Matlab and C++ to Generate Power Test Signal
(School of Electronics and Information, Xi'an Polytechnic University, Xi'an 710048, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 2169次   下载 3376
Received:August 13, 2015    Revised:October 08, 2015
中文摘要: 针对在C++ Builder中生成白噪等扬声器功率实验所用测试信号的难度较大,以及MATLAB与C++ Builder混编过程中的兼容性问题,文章提出了一种MATLAB与C++混合编程的方法.首先,运用Matlab生成动态链接库DLL;其次,VS调用该DLL文件并编写接口函数以生成可供C++ Builder调用的DLL文件;最后,在C++Builder中设计应用程序以生成扬声器功率实验测试信号.为验证所生成信号的准确性,文章对信号的均值、方差、自相关性、频谱、功率谱密度、概率密度、三分之一倍频程的RTA等参量进行计算,通过将计算结果与标准信号进行对比分析,发现混合编程生成的信号可作为扬声器功率实验信号使用.
中文关键词: Matlab  VS2010  C++Builder  混合编程  功率实验信号
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
ZHOU Jing-Lei,DONG Jiao,CHANG Cheng,LI Qian.Mixed Programming Between Matlab and C++ to Generate Power Test Signal.COMPUTER SYSTEMS APPLICATIONS,2016,25(4):206-209