How do I get stateflow to use parameters in Simulink.parameter object?
Show older comments
Hi,
I have been looking around for a answer to this but have not found any concrete usefull information.
I have a simulink model containing a stateflow chart. In this stateflow chart I would like to use parameters from a Simulink.parameter object. I will be building the model using ert_shrlib target.
The struct looks like this:

Futhermore i have a bus defined like this (it has the two parameters im using in my test setup):

I have tried to look at the example sf_bus_demo but that seems to build the bus in simulink and then pass it to Stateflow via an input. What i would like to do is to make the parameters available in stateflow like done with non-simulink.parameters objects (see picture below):

I have tried to mess arround with adding the "ParamStruct" bus but have not been able to get it to work.
I can't seem to figure out how to do this. Maybe my understanding of how to approach this is not correct?
I have attached the small test setup im trying to get to work.
Thanks,
Ebbe Nielsen
Accepted Answer
More Answers (0)
Categories
Find more on Decision Logic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!