摘要
提出一种Matlab和VC++混合编程的方法并应用到差分光学吸收光谱(DOAS)大气污染监测系统中.根据数值计算精度要求,引用一种矩阵交换文件的方法来简化程序结构,使Matlab和VC++的编程可独立进行;介绍了一种将Matlab代码转换成为VC++代码的方法,它可以编译出单独的高效可执行程序,而不需要计算机系统中具有Matlab环境.对于SO2、NO和NO2的实验结果表明,该方法非常有效.该系统的测量范围从1×10-6到1×10-4,单组分的测量误差在1500之内.
Matlab is a very powerful matrix and m at h software package for engineering and scientific calculations with advanced fil e I/O and graphical display capabilities. VC++ is developed with friendly user interface and widely used in computer-controlled measurement system. Thi s paper presents a Matlab and VC++ mixed programming method which is used in our differencial optic absorption spectroscopy (DOAS) atmospheric pollution m onitoring system. According to the accuracy requirement of numerical calculatio n, a matrix data exchange file method is employed to simplify program structure in order to write Matlab and VC++ program independently. A method to tran slate Matlab code into VC++ code is also introduced to make single stand -alone executable program without Matlab environment in computer system. The t est results for SO2,NO and NO2 show that the method proposed in the paper i s very effective. The measurement range of this system is from 1×10-6 to 1×10-4, and the error range is limited to 150 0 for single component.
出处
《天津大学学报(自然科学与工程技术版)》
EI
CAS
CSCD
北大核心
2003年第5期548-552,共5页
Journal of Tianjin University:Science and Technology
基金
天津市光电子联合科学研究中心资助项目(003100411).