Azzera filtri
Azzera filtri

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

18 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Mark McBroom
Mark McBroom il 19 Lug 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 Commento
昱颖 陈
昱颖 陈 il 13 Ago 2024 alle 7:55
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with DDS Blockset in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by