Is it possible to use Simulink's DDS BlockSet to communicate between two Simulink models on two computers?

4 次查看(过去 30 天)
the giving examples only use dds blockset to connect things in the same simulink model, can I use dds blockset to do more, such as using it to send and receive data between 2 seperate simulink models (.slx)? even when the 2 models are set on 2 computers?
If it is possibel, what can I do to set the dds blockset?

采纳的回答

Mark McBroom
Mark McBroom 2024-7-19
You can use Simulink to exchange DDS messages from 2 or more different Simulink models using External mode. These Simuilnk models can be running in different instances of MATLAB on the same computer or on different computers.
Thanks.
Mark.
  1 个评论
昱颖 陈
昱颖 陈 2024-8-13
Thank you for your solution, but I am still confused. How do I confirm the connection of Simulink on two computers? For example, in the Simulink models of two computers, publishers and receivers of the same topic were built separately. How to use external mode for data transmission and reception, and are there more detailed steps? Should I learn to use the XCP communication or sth like it?
What I hope to achieve is like the official example above, but the GPS module and Accelarte module are on different computers using Simulink, and data is transmitted between them through DDS. But at the same time, I don't know how to control them to start simulating at the same time. Is this feasible using the dds blockset? I just can not find the related document.
Sorry for my silly question,I am new to simulink.
Thanks.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with DDS Blockset 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by