Export Symbols attributes in Stateflow

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by