Start simulations on multiple Raspberry Pis at the same time

6 次查看(过去 30 天)
I have two Raspberry Pis connected to my system. I would like to flash two different models (controller and plant model) to the two boards and start real-time simulation at the same time in both the boards. I download the models one after the other (Build & Deploy workflow). However, I am looking for ideas to control the real-time execution start time. I would like to control this via WSL command line. What are some suggested workflows?

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2024-3-31
The following discusses some suggested workflows for this procedure:
  1. For starting the application manually, you can just "Build" instead of "Build & Deploy". This just builds the application. You can then run WSL commands to start both standalone applications together, or manually run the application from "Raspberry Pi Resource monitor App": https://www.mathworks.com/help/simulink/supportpkg/raspberrypi_ug/raspberrypiresourcemonitor-app.html.
  2. Please note: For Simulation / External mode, users cannot launch the application from WSL Command line window, it has to be launched from the Model itself.
  3. You can also write a (bash) shell script to copy the elf executables to the Raspberry Pis and then start them using the 'pdsh' command.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Raspberry Pi Hardware 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by