摘要
Simulink模型使用自身的时钟步长和数据流,不与其他程序共享。提出了一种在分布式仿真系统中直接使用Simulink模型的方法。为了和分布式仿真系统交互仿真数据,设计了一种代理程序的结构。代理程序采用共享内存技术和Simulink的S函数作为接口与Simulink模型进行数据交互。并使用进程通讯中的共享内存和事件技术来实现代理程序和Simulink模型之间的同步。
A method of integrating the Simulink model into distributed simulation system was presented. Simulink models have their own nmning period and data stream. To pick out these data and control the nmning period, an agent program was built to control and communicate with Simulink model. In the agent program, shared memory and a pair of block built in S-function were used to pick out the model data, and then the agent sent out the data. A global event object was shared between the agent and Matlab simulation engine to realize the synchronization.
出处
《系统仿真学报》
EI
CAS
CSCD
北大核心
2007年第4期787-789,933,共4页
Journal of System Simulation
基金
国防科技重点实验室基金资助(51448080105ZS2601)