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

3 views (last 30 days)
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?

Accepted Answer

Mark McBroom
Mark McBroom on 19 Jul 2024
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 Comment
昱颖 陈
昱颖 陈 on 13 Aug 2024
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with DDS Blockset in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!