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

조회 수: 3 (최근 30일)
Adam Kopach
Adam Kopach 2018년 4월 30일
답변: Prajit T R 2018년 5월 3일
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
Ameer Hamza
Ameer Hamza 2018년 4월 30일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Prajit T R
Prajit T R 2018년 5월 3일

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by