Is there a way to change value of Data Store Memory in Simevents with App Designer?

5 ビュー (過去 30 日間)
Ho Jung Kim
Ho Jung Kim 2022 年 7 月 11 日
編集済み: Gowtham 2023 年 9 月 27 日
I am trying to use App Designer as a user interface to change values of Data Store Memory in Simevents. For example, all the operators' default value is 0 and if the operator "See" is selected, value changes to 1. Is there a way to do this?

回答 (1 件)

Gowtham
Gowtham 2023 年 9 月 5 日
編集済み: Gowtham 2023 年 9 月 27 日
Hello Ho Jung Kim,
I understand that you want to change value of Data Store Memory in Simevents. For example, updating the values of the drop-down menu using an event that triggers the change. This can be achieved by function callback on a sample button used to trigger the same.
Callback on the changeValue button
  • The changeValueButtonPushed callback of changeValue button is triggered on button push
  • It updates the value in the drop-down by accessing each drop-down menu
To further extend this, the variables can be stored in the workspace using the commands save or assignin. This data can be accessed by load command to use it in a Data Store Memory block in any Simevents.
Feel free to refer to the following documentation for further understanding:
Hope it helps!

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by