- MQTT Publish - https://www.mathworks.com/help/supportpkg/raspberrypi/ref/mqttpublish.html
- MQTT Subscribe - https://www.mathworks.com/help/supportpkg/raspberrypi/ref/mqttsubscribe.html
- how to use MQTT blocks - https://www.mathworks.com/help/supportpkg/raspberrypi/ref/publish-and-subscribe-to-messages-using-mqtt-blocks.html
Is it possible to use the workspace in a real time simulink simulation?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 RF Blockset Models for Transceivers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!