How do I change drop - down value of a block in Simulink model for my simulation input object?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad
am 19 Sep. 2022
Kommentiert: Fangjun Jiang
am 30 Okt. 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 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 28 Okt. 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 Kommentare
Fangjun Jiang
am 30 Okt. 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.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!