|
摘要: |
为了充分发挥Matlab和VB各自优势,实现两者的无缝集成并应用于电力系统仿真设计。简要介绍了借助ActiveX部件、借助动态数据交换DDE(Dvnamic Data Exchange)技术、通过M文件和引入Matrix VB的4种集成方法,着重阐述了通过借助ActiveX部件与DDE技术实现Matlab与VB的混合编程,并以一个实例介绍了该方法在电力系统仿真设计中的应用,对实现的关键技术作了简要说明。通过在仿真平台simulink上利用电力系统模块PSB(Power System Blockset)的仿真分析,结果显示这种前台用VB编程、后台由Manab辅助的思想能较好地弥补Matlab用户界面不够友好等缺陷。 |
关键词: Matlab 可视化Basic语言 互动式元件 动态数据交换 电力系统模块 |
DOI: |
分类号:TM743 TP312 |
基金项目: |
|
Application of Matlab & VB seamless integration in power system simulation |
LI Hong - sheng GONG Rong CHEN Lei
|
Abstract: |
The seamless integration of Matlab and VB in power system simulation design is realized to take the advantages of both.Four methods of integrating are introduced,including using ActiveX,DDE(Dynamic Data Exchange)technologies,M - file and Matrix VB.The hybrid programming of Matlab and VB using ActiveX and DDE technologies is emphasized,which is applied in power system simulation design as an example.The key implementation techniques are described briefly.The simulative analysis using PSB(Power System Blockset)on simulation platform Simulink shows that the foreground VB programming with Matlab support in the background may better make up the inadequacy of Matlab in HMI and so on. |
Key words: Matlab,VB,ActiveX,DDE,power system blockset |