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

5 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Mark McBroom
Mark McBroom el 19 de Jul. de 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 comentario
昱颖 陈
昱颖 陈 el 13 de Ag. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with DDS Blockset en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by