Clear Filters
Clear Filters

Export Symbols attributes in Stateflow

1 view (last 30 days)
Lorenzo
Lorenzo on 25 Nov 2023
Commented: Lorenzo on 29 Nov 2023
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.

Answers (1)

madhan ravi
madhan ravi on 25 Nov 2023
Edited: madhan ravi on 25 Nov 2023
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 Comment
Lorenzo
Lorenzo on 29 Nov 2023
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.

Sign in to comment.

Categories

Find more on Complex Logic in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!