How to access architecture parameter from inside simulink model
1 view (last 30 days)
Show older comments
I have a system composer architecture made up of subsystems with some stereotypes assigned to them allowing me to define specific parameters.
I've converted those subsystems into behaviours so that I can add simulink and stateflow logic. Now I want to access the parameters (defined by the stereotype) in the architecture of the appropriate subsystem. I want those parameters to be accesible from inside the behaviour.
For example tp define the resitance of motor windings in the model architecture as a parameter, and then the behaviour simulates the motor using the value from that parameter. Can't seem to find a way to do it.
I've been trying to use the getParameter function along with the gcb function however I'm not making much progress. The gcb function returns a string and I can't find a way to convert that to an architecture object with which to use the getParameter function with
https://uk.mathworks.com/help/simulink/slref/gcb.html
Would love some help
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on System Composer 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!