How do I change drop - down value of a block in Simulink model for my simulation input object?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muhammad
le 19 Sep 2022
Commenté : Fangjun Jiang
le 30 Oct 2022
How do I change drop - down value of a block in a simulink model for my simulation input object? I can't use set_param as it is not supported for deployment.
I want to be able to produce a stand-alone from it.
2 commentaires
Réponse acceptée
Fangjun Jiang
le 28 Oct 2022
For changes like this, if you do it manually, meaning changing from 'Element-wise(K.*u)' to 'Matrix(K*u)', the Simulink model is changed. In other words, if you want to do it programingly, you have to use set_param('Block','Multiplication','Matrix(K*u)'). This is not something that can be done by setting up simulation input object.
2 commentaires
Fangjun Jiang
le 30 Oct 2022
A workaround could be developed using the variant subsystems. Use a workspace variable to control the variants, one uses the 'Element-wise(K.*u)' Gain block, the other uses the 'Matrix(K*u)' Gain block.
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!