摘要
MATLAB和C#语言都能把各自的源程序编译为.NET程序集,并支持对.NET程序集的调用,藉此可实现MATLAB和C#语言混合编程,弥补单一语言功能不足的缺点。在火炮CAD软件的开发中,用MATLAB语言编写火炮CAD模型计算程序并使用Builderfor.NET工具编译为.NET程序集,然后利用C#语言编写软件界面,利用树形结构组织火炮的内弹道、炮口制退器和制退机等功能模块,各个模块相应调用由MATLAB生成的.NET程序集实现其功能,使用多线程预加载技术对程序进行优化以提高运行速度。
MATLAB and C# language support.NET Assembly and can compile source files to.NET assemblies;thereby it enables mixed programming and makes up the shortcoming in a single language.In the software development of Artillery CAD,MATLAB language was used to write Artillery CAD programs and then compiled the programs to.NET Assemblies through Builder for.NET tool,then build software interface by C#,organized ballistics,muzzle break,recoil mechanisms and other modules using tree-view structure,each module corresponsively call the.NET Assemblies generated by MATLAB to achieve its functions.By using multi-threading Pre-loaded technology,the program was optimized to increase speed.
出处
《火炮发射与控制学报》
北大核心
2010年第2期44-47,共4页
Journal of Gun Launch & Control
关键词
计算机应用
火炮
CAD系统
混合编程
computer application
artillery
CAD system
mixed programming