When generating an s-function from a simulink block, can I select fields within an input structure to make them tunable parameters which show up within the s-functions mask?
显示 更早的评论
I'm really just curious if there is a simple way to make tunable parameters from individual fields within structures that are passed into a simulink block when generating an s-function. What I'm looking for is something analgous to how you would normally select an input as a tunable parameter when generating an s-function, which then shows up in your s-functions simulink block mask. However, with passing workspace structures into the simulink block, it seems like you can select the structure as tunable and the generated code seems to provied a path to make the underlying fields tunable. However, I can't seem to find a simple way for this structure information to show up within my mask, that is, without having to do some code editing and recompiling, which I'm trying to avoid.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!