フィルターのクリア

Communicate Signals Between Two Simulations on the Same Computer?

3 ビュー (過去 30 日間)
Joseph Krese
Joseph Krese 2020 年 12 月 23 日
コメント済み: Mark McBroom 2020 年 12 月 29 日
I have a simulation model that uses many different refernce models and external data dictionaries, with local variables passed to the various models using busses. I want to duplicate this model and run it simultaneously because I have a use case where we will have two of these systems running side by side in the real world, communicating with each other through a modbus link.
I've seen information on OPC and UDP/TCP/IP blocks, but I can only find information about running them on a separate computer. I would like to run both of these simulations in separate matlab instances on a single computer. Does anyone have any experience with running two simulations simultaneously on the same host, communicating through one of these blocks? (most likely will be looking at OPC)
Thanks!

回答 (1 件)

Mark McBroom
Mark McBroom 2020 年 12 月 25 日
The UDP/TCP blocks can be used to share data between two different Simulink models running in different MATLAB instances on the same computer.
  2 件のコメント
Joseph Krese
Joseph Krese 2020 年 12 月 28 日
Thanks,
I did see that you could use those blocks, but we do not have those toolboxes. We do have the OPC toolbox, which is why I wasn interested in that one.
Mark McBroom
Mark McBroom 2020 年 12 月 29 日
Hi Joseph,
I have not used the OPC toolbox, but a quick look at the help documenation leads me to believe that these blocks will also support your use case as long as you configure both models/MATLAB instances to connect to the same OPC server.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeUnified Architecture についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by