Clear Filters
Clear Filters

Stateflow Model Export: How to get consistent Ids for States and Transitions for exporting

1 view (last 30 days)
Hello Matlab Forum
I am in the business of creating an Export from Stateflow to a DOORS module.
Taken me a while to get there, but I am happy with the initial creation.
However, I am having trouble updating the DOORS module after some Model changes.
The models concerned are made up of a number of subsystems. I start my script by loading he top level model, then using a
set_param(hModel, 'SimulationCommand', 'Update') ;
command to load the subsystems. I read that the id property found on all States, Transistions and Charts was unique so I hoped to use this for any updates.
Subsequent testing shows that this cannot be relied upon and it depends on which subsystems you load first and maybe a load of other things to.
I unzipped the slx files and looked into the Stateflow.xml, it appears that an Id is persisted into the file for each State/ transition etc and remains constant through iterations, but this is not the same Id exposed through the Stateflow API.
I want a reliable identifier to use to identify states, transitions etc.
Any ideas on how to get this appreciated!!
Thanks for any help
Richard

Answers (0)

Categories

Find more on Complex Logic in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!