Copy Parameters from Stateflow
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to copy parameters in a stateflow to outside of the chart. This is beacuse I need to access these parameters, so that I can treat them as regular calibration and then replace them with a special ETAS block from the library. This is part of rapid prototyping where we need to add hooks to variables.
I did find this link http://www.mathworks.com/matlabcentral/answers/48939-copying-constant-from-stateflow-model-to-simulink---to get constants from stateflow
but I still to understand if its possible to copy from stateflow to a block in model.
0 Kommentare
Antworten (1)
Ryan G
am 5 Nov. 2012
There are a couple of things you can try depending on your limitations.
1) You can add an output from the stateflow model for all the parameters you want.
2) You can use data store blocks. This Example shows how you can define a global variable with data store blocks.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Complex Logic finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!