Why does my Constant block not accept a structure's field as input?
Show older comments
In the base workspace I have defined the following:
k = mpt.Parameter;
k.Value = 7;
h.k = k;
If I now try to use this structure in the value field for my Constant block I receive the following error:
Expression 'h.k' for block 'testmodel/Constant' returns a Simulink.Parameter object that has property values that need to be evaluated. This object should be instantiated in a workspace and referenced by name in Simulink.
Why?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Environment Customization 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!