Effacer les filtres
Effacer les filtres

Problem with external mode and model running on target hardware

3 vues (au cours des 30 derniers jours)
Graham Cotgreave
Graham Cotgreave le 3 Oct 2022
When attempting to connect a model running on the target hardware I encounter "External mode simulation is not supported for models with local messages."
I can't find anywhere in the documentation that describes how to send messages within a state chart without using "local message". Neither can I find this limitation listed under the "External Mode" settings when running on hardware.
Does anyone have any advice?

Réponse acceptée

Yoga
Yoga le 10 Sep 2023
I understand that you are unable to connect a model running on your target hardware.
Local messages in Stateflow charts are used for communication between different states or components within a chart and are not designed to be exchanged with the external environment or hardware. If you can eliminate the use of local messages within your Stateflow chart, this would be the easiest solution. Try to use other Stateflow constructs like events, data, or transitions to achieve your desired behavior without local messages.
I hope this helps resolve your issue.
  1 commentaire
Graham Cotgreave
Graham Cotgreave le 11 Sep 2023
Thanks for the information. On the advice of a visiting MW representative, we achieved a workround, by sending the messages externally and reading them back. Good to know there may have been other solutions.
Maybe the documentation could be updated to refect this?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by