Effacer les filtres
Effacer les filtres

How do you pass a variable from a GUI into a simulink model workspace variable?

8 vues (au cours des 30 derniers jours)
Adam Kopach
Adam Kopach le 30 Avr 2018
I have a variable "A" in my model workspace in simulink. I am trying to make a GUI that uses a slider that will adjust the variable in the workspace. I can't seem to figure out how to pass the value into the simulink workspace. Any help is appreciated.
  1 commentaire
Ameer Hamza
Ameer Hamza le 30 Avr 2018
Although not directly an answer to your question, have you considered using <https://www.mathworks.com/help/simulink/ug/tune-and-visualize-your-model-with-dashboard-blocks.html Dashboard elements in Simulink. It provides all types of UI elements, which can easily interface with Simulink blocks and change simulation parameters in runtime.

Connectez-vous pour commenter.

Réponses (1)

Prajit T R
Prajit T R le 3 Mai 2018

Catégories

En savoir plus sur Model, Block, and Port Callbacks dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by