Can you compile a SIMULINK model with parameters in a transfer function block?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jonathan Dan
le 9 Déc 2015
Réponse apportée : Vaibhav Awale
le 14 Jan 2016
I have a SIMULINK model with a Transfer Fcn block defined as
- Numerator coefficients: [A*B]
- Denominator coefficients: [C 2*D E^2]
I have set A, B, C, D, E as global (tunable) parameters. However when I try to compile the model I get several warnings resembling:
Warning: Reducing expression [C 2*D E^2] in parameter field Denominator of model to its numerical equivalent because the expression has one or more unsupported operators. This expression resolves to tunable variables (C (base workspace)). You will be unable to tune this expression during model execution
- Is it possible to compile a SIMULINK model with runtime set parameters in transfer functions?
- If not how can I speed up a large number of calls to the SIMULINK model with different parameters?
(all parameters are scalar constants which are set when calling the model.)
0 commentaires
Réponse acceptée
Vaibhav Awale
le 14 Jan 2016
Hi Jonathan,
The build warnings arise due to limitations on the use of tunable variables in expressions. For example, expressions containing the ^ or [] operators are unsupported expressions for code generation. Please refer to the documentation titled "Tunable Expression Limitations."
Regards,
Vaibhav
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!