首页 | 本学科首页   官方微博 | 高级检索  
     

采用MATLAB与C++混合编程生成扬声器功率实验信号
引用本文:周静雷,董姣,常诚,李倩.采用MATLAB与C++混合编程生成扬声器功率实验信号[J].计算机系统应用,2016,25(4):206-209.
作者姓名:周静雷  董姣  常诚  李倩
作者单位:西安工程大学 电子信息学院, 西安 710048,西安工程大学 电子信息学院, 西安 710048,西安工程大学 电子信息学院, 西安 710048,西安工程大学 电子信息学院, 西安 710048
摘    要:针对在C++ Builder中生成白噪等扬声器功率实验所用测试信号的难度较大,以及MATLAB与C++ Builder混编过程中的兼容性问题,文章提出了一种MATLAB与C++混合编程的方法.首先,运用Matlab生成动态链接库DLL;其次,VS调用该DLL文件并编写接口函数以生成可供C++ Builder调用的DLL文件;最后,在C++Builder中设计应用程序以生成扬声器功率实验测试信号.为验证所生成信号的准确性,文章对信号的均值、方差、自相关性、频谱、功率谱密度、概率密度、三分之一倍频程的RTA等参量进行计算,通过将计算结果与标准信号进行对比分析,发现混合编程生成的信号可作为扬声器功率实验信号使用.

关 键 词:Matlab  VS2010  C++Builder  混合编程  功率实验信号
收稿时间:2015/8/13 0:00:00
修稿时间:2015/10/8 0:00:00

Mixed Programming Between Matlab and C++ to Generate Power Test Signal
ZHOU Jing-Lei,DONG Jiao,CHANG Cheng and LI Qian.Mixed Programming Between Matlab and C++ to Generate Power Test Signal[J].Computer Systems& Applications,2016,25(4):206-209.
Authors:ZHOU Jing-Lei  DONG Jiao  CHANG Cheng and LI Qian
Affiliation:School of Electronics and Information, Xi''an Polytechnic University, Xi''an 710048, China,School of Electronics and Information, Xi''an Polytechnic University, Xi''an 710048, China,School of Electronics and Information, Xi''an Polytechnic University, Xi''an 710048, China and School of Electronics and Information, Xi''an Polytechnic University, Xi''an 710048, China
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.
Keywords:Matlab  VS2010  C++ Builder  mixed programming  power test signal
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号