Matlab、Simulink、通过 LAN 在多个 simulink 模型之间建立连接

发布于 2024-12-02 14:52:36 字数 702 浏览 1 评论 0原文

有一个由一些子系统组成的Simulink模型,它应该在一台计算机上运行每个子系统,并且所有计算机都连接到LAN网络。

这些子系统之间存在互连,并且数据将在它们之间传输,因此它们应该同步运行并且最好是实时运行。

但计算机有Windows操作系统,因此没有实时操作系统。

我正在寻找解决这个问题的方法。到目前为止我发现的是:

  1. Simulink实时研讨会可以制作simulink模型的可执行代码,但该代码可以仅使用实时处理器实时运行,并且它们似乎不能支持多个之间的连接

  2. XPC 目标是已知的,但它只是在一台主机 PC 或硬件与一台目标 PC 之间建立连接,并且目标 PC 应具有实时操作系统。所以它没有涵盖这个问题。

  3. Werner.Zimmermann 有一个名为“Matlab / Simulink 的硬件输入/输出库”的 Matlab 库,该库具有一些良好的设施,可以使 simulink 接近实时运行,并且可以建立连接和发送两台计算机之间通过 TCP/IP 传输数据,但似乎它只能在运行 simulink 的两台计算机之间建立连接。

它还对 OS 和 Matlab/Simulink 版本有一些限制,并且没有更新。所以我不确定这是否足够。

在所有这些之后,有谁知道处理这个问题的更好方法?如果对这些主题有任何有用的帮助或解决此问题的其他方法,我将不胜感激。

提前致谢

There is a Simulink model composed of some subsystems, It is supposed to run each subsystem in a computer and all computers are connected to a LAN network.

There are interconnections between these subsystems and data shall be transferred between them so they should run synchronously and preferably real time.

But the computers have Windows operating system and so they do not have real time operating system.

I am searching to find a solution for this problem. what I have found up to now is that:

  1. Simulink real time workshop can make executable code of simulink models but the code can be run real time just with real time processors and it doesn't seem that they can support connection between multiple computers.

  2. XPC target is known but it just make connection between one host PC or hardware and one target PC and the target PC shall have real time OS. so it doesn't cover this problem.

  3. There is a library for Matlab titled "Hardware Input / Output Library for Matlab / Simulink " by Werner.Zimmermann that have some good facilities such that it can make simulink to be run near real- time and it can make connection and send data via TCP/IP between two computers but it seems it can just make the connection between two computers running simulink.

It also have some constraints for OS and version of Matlab/Simulink and is not updated. So I'm not sure it would be enough.

After all of these, does anyone know a better way of handling this problem? I would appreciate any help on any of these topics to be useful or another ways to solve this problem.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文