I am trying to send information to a deployed model on the Arduino. The model sends the information (left) the other receives it (right, also the model deployed)

1 Ansicht (letzte 30 Tage)
Hello,
as I mentioned before I want to use the model on the left to send data to the model deployed on the Arduino. The model deployed just makes an LED blink.
THE ISSUE: I deploy the mode on the hardware (Right model) and run the model on the Left to send serial data. However, I have to go back to the model on the right and click build for the LED to blink.
I am not sure why I have to (Build, Deploy, Start) the model on hardware, run the model sending the data, AND build the model again for the LED to blink.
Any help would be appreciated, thank you!

Antworten (1)

Raj
Raj am 3 Apr. 2024
As per my understanding of your issue, since both the model are being connected to the same hardware, there may be conflicts and thus leading to unexpected behavior. When you run a model on a hardware with an already deployed model in it, both models will use same resources which may lead to conflict.
Running the model in 'external' mode in Simulink helps you to configure model parameters and monitor signals in real time. You can take use of this feature and revise your model to cater to your use-case.
For more on external mode of simulation refer to the following documentation link-
Additionally I found a tutorial which you can follow for LED blinking-
I hope this resolves your query!

Kategorien

Mehr zu MATLAB Support Package for Arduino Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by