フィルターのクリア

Export Symbols attributes in Stateflow

1 回表示 (過去 30 日間)
Lorenzo
Lorenzo 2023 年 11 月 25 日
コメント済み: Lorenzo 2023 年 11 月 29 日
Hello everyone,
In my work project, i have been using stateflow to define the logic of a supervisory system for a power generator. The stateflow block contains the logic for the operation of such generator. Within the stateflow block I was able to assign requirements to the different sub-blocks containing subcharts using the Requirement Editor. This is very useful as I need to have an handover of this document package to the software team.
In my stateflow chart, I have assigned variables (defined as symbols here), which are received as input by the stateflow block, or generated as output by the stateflow block. I spent time to define what type of symbol this was (e.g., boolean, uint8...), yet I have not yet found an option to export this information. I was hoping there was a way to display this type of information when exporting the requirements through webview or to export just the symbol type as some form of "signal list".
I am able to assign requirements to the transitions and write the type of signal manually, but it is really inconvenient as changes fo not propagate if there is a revision.
Any suggestion is very much appreciated.

回答 (1 件)

madhan ravi
madhan ravi 2023 年 11 月 25 日
編集済み: madhan ravi 2023 年 11 月 25 日
You can turn on the option to display the attributes by default and by doing this it’s always easier for others to understand what type of signals are being used in the model.
This way the inputs and outputs of the chart will be displayed but not sure if it’s displayed within the chart. But atleast will be clear for you customers what type of signals are propagating in and out of the chart.
You could also assign data types programmatically
  1 件のコメント
Lorenzo
Lorenzo 2023 年 11 月 29 日
Thanks for the input. It seems that this is the smarter way to do it, in the lack of a dedicated way to export the list of symbols with properties. Thanks for your time.

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

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by