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

조회 수: 5 (최근 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