필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by