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?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!