我想并行和同步运行两个或多个simulink模型. [英] I want to run two or more simulink model in parallel and synchronisation.

查看:1112
本文介绍了我想并行和同步运行两个或多个simulink模型.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想并行和同步运行两个或多个simulink模型.有什么办法吗?我认为的一种方法是创建一个子系统并将所有模型放入其中.它应该并行运行.我不喜欢这个.我想打开两个Matlab实例,并在同步中运行两个不同的模型.这可能吗?我想以编程方式进行操作.任何帮助都是可观的.

Hi I want to run two or more simulink model in parallel and synchronisation. is there any way to do it? One way I think is by creating a subsystem and put all models inside it. It should run parallely. This one is not prefered for me. I want to open two matlab instances and run two different model in synchronisation. is this possible? I want to do it programmatically. Any help is appreciable.

推荐答案

如果您拥有仪器控制工具箱,则可以通过

If you have the Instrument Control Toolbox, you can send/receive data between the two models via TCP/IP or UDP/IP blocks. No need to have two MATLAB sessions, this can be done from one MATLAB session, see this loopback example.

但是,我会询问是否需要两个单独的模型.如果您想保留每个子模型的原子性质,为什么不将两个模型与子系统或模型块放在同一模型中?

However, I would query the need to have two separate models. Why not put both models in the same model as subsystems, or even as Model blocks if you want to keep the atomic nature of each sub-model?

这篇关于我想并行和同步运行两个或多个simulink模型.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆