节点文献
基于VB和MATLAB接口的光学实验模拟系统
Optical experiment simulation system based on VB and MATLAB interfacing
【摘要】 着重介绍了利用VB和MATLAB混合编程技术开发光学实验仿真模拟软件的方法,以杨氏双缝干涉实验为例对此过程作了详细的阐述。先建立数学模型,在MATLAB中编写M-文件,通过Matcom4.5将编好的M-文件转化成可供VB直接调用的DLL文件。然后在VB工程中引入DLL及其申明文件实现对DLL文件的调用。将其它光学实验也进行仿真后,一起打包整理,制成安装包,制作出光学实验的仿真模拟软件。通过在物理实验室试用表明该软件真正实现了辅助实验教学。
【Abstract】 This paper introduces a software development technology of optical experiment simulation using the merging programming of VB and MATLAB,making the explanation with the simulation of Young’s Double-Slit Interference Experiment.Firstly,set up the mathematical model,write the M-files in MATLAB,and through Matcom4.5 transform M-files into DLL-files.Secondly,invoke the DLL-files in VB through the declaring files.After simulate other optical experiments,pack them to make the installing package.The results of probation shows the effectiveness in CAI.
【Key words】 MATLAB; VB; Interfacing; DLL; Optical experiment simulation; Software development;
- 【文献出处】 微计算机信息 ,Microcomputer Information , 编辑部邮箱 ,2008年33期
- 【分类号】TP311.52
- 【被引频次】4
- 【下载频次】305