在等离子体单粒子模拟程序开发中,需要进行大量的模拟运算,保存和分析大量的模拟结果。Matlab是科学和工程计算的常用工具,但不具备大量数据的管理能力。Microsoft Access是广泛应用的数据库管理和应用软件,VB.NET是功能强大、简单易学的程序设计语言工具。结合这3种软件最新版本的新特性,通过三者的混合编程,在VB.NET中利用ActiveX技术实现对Matlab的调用,使用Matlab进行模拟运算,并将模拟结果保存到Access数据库中,利用三者各自的优点,编写出了适合需要的应用程序。
During the development of the plasma single particle simulation program, it needs a lot of simulating numeration, lots of simulating results are saved and analyzed. Matlab is a common used instrument for scientific and engineering simulation, but it doesn't have management ability of abundant data. Microsoft Access is database management and application software. VB. NET is a powerful and easy learning programming language. Through the hybrid of the three software, the control of Matlab by ActiveX technology in VB .NET is implemented, simulation by Matlab, saved the results to Access database, combined their respective advantages, and designed a program which could satisfy the requirements.