How do I change drop - down value of a block in Simulink model for my simulation input object?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Muhammad
il 19 Set 2022
Commentato: Fangjun Jiang
il 30 Ott 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 Commenti
Risposta accettata
Fangjun Jiang
il 28 Ott 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 Commenti
Fangjun Jiang
il 30 Ott 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.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!