Detect change between two stateflow

I would like to determine if two state machines are different. I would like to be able to analyze their content for example because parameters accessible from a get_param() are not enought.
Is there a unique identifier for the state machines which increments when modified or even a state machine version number?
Thanks in advance

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2022년 10월 19일

0 개 추천

댓글 수: 4

Theo Grancher
Theo Grancher 2022년 10월 19일
No I don't want to compare full model. I just want to know quickly, without open my stateflow blocks if there is change inside ?
Fangjun Jiang
Fangjun Jiang 2022년 10월 19일
You have to have a base to compare with, right? Assume you have a model saved in a file (.mdl or .slx), and you have another file (.mdl or .slx, assume the content is similar to the other model), you want to know in particular that a Stateflow chart inside is different, without even open the model in Simulink?
Theo Grancher
Theo Grancher 2022년 10월 20일
The two model are open and in front of me and I'd like to see without looking inside chart block if there is a change. Maybe with a version parameter or a last save date...
Fangjun Jiang
Fangjun Jiang 2022년 10월 20일
I don't think there is a practical solution for it now. Version parameter and save date, or the dirty flag, only applies to the model, not to a block. I checked the callback function, there is no such a function related to this, for example, 'ChangeFcn'.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

질문:

2022년 10월 19일

댓글:

2022년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by