Is it possible to use the workspace in a real time simulink simulation?

8 ビュー (過去 30 日間)
Anton Boersma
Anton Boersma 2024 年 3 月 5 日
編集済み: Ayush Modi 2024 年 3 月 11 日
Hi,
I want to use MQTT messages in a real time running Simulink simulation. The MQTT part runs when I run a matlab script in Matlab itself, but I want to integrate it with Simulink.
So my bigger question is: how can I run a MQTT broker in Simulink?
But my more accessible question is: how can I use the workspace in a real time Simulink simulation? Such that I can use the "To Workspace" and "From Workspace" blocks.
Thank you,
Anton

採用された回答

Ayush Modi
Ayush Modi 2024 年 3 月 11 日
編集済み: Ayush Modi 2024 年 3 月 11 日
Hi Anton,
Question-1: how can I run a MQTT broker in Simulink?
You can use "MQTT Subscribe" and "MQTT Publish" blocks available in "Simulink Support Package for Raspberry Pi Hardware".
Refer to the following MathWorks documentation to know about:
Question-2: how can I use the workspace in a real time Simulink simulation? Such that I can use the "To Workspace" and "From Workspace" blocks.
I found similar question in the community.
Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by