How to access used variables in a specific state in stateflow

7 ビュー (過去 30 日間)
Howard Zhang
Howard Zhang 2019 年 5 月 29 日
編集済み: Howard Zhang 2019 年 5 月 29 日
Hello Guys, I am trying to create an algorithm that requires access to variables used in individual states in a simulink chart. From the context menu, I can see that this data is accessible some how, but I can't find any resources on how to find them.
In the attached picture, the explore function can see that x, i , and mode are being used in the state count, and what type of data they are, I would like to be able to get this information with a function/script for each individual state.
Any help/ pointers would be appericiated.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2019 年 5 月 29 日
  1 件のコメント
Howard Zhang
Howard Zhang 2019 年 5 月 29 日
Hi Fangjun I have looked at the Stateflow API, however, the Stateflow.State Objects only shows code under the LabelString field, which is just a char array. What I am looking for is a systematic listing of variables being used/modified in a particular state.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by