Detect change between two stateflow
Ältere Kommentare anzeigen
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
Antworten (1)
Fangjun Jiang
am 19 Okt. 2022
0 Stimmen
Are you looking for https://www.mathworks.com/help/simulink/model-comparison.html
4 Kommentare
Theo Grancher
am 19 Okt. 2022
Fangjun Jiang
am 19 Okt. 2022
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
am 20 Okt. 2022
Fangjun Jiang
am 20 Okt. 2022
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'.
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!