How do I list and edit all global (tunable) Parameters from the command line?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Friedrich Welck
am 22 Mär. 2016
Kommentiert: Friedrich Welck
am 31 Mär. 2016
I need to list all global (tunable) Parameters of a model via commandline. I usually get to the list via the menu. (Simulation -> Model Configuration Parameters -> Optimization -> Signals and Parameters -> Inline Parameters -> Configure)
I also need to edit this list via commandline.
0 Kommentare
Akzeptierte Antwort
Vidya Viswanathan
am 31 Mär. 2016
Bearbeitet: Vidya Viswanathan
am 31 Mär. 2016
Hi Friedrich,
There is a command line approach to list all the global Tunable parameters present in the Simulink model and to edit it. The model property that corresponds to that is called 'TunableVars'. If your Simulink model has, say, 2 Global Tunable parameters K1 and K2, you can get the names of these parameters using the following line of code:
>> get_param(ModelName,'TunableVars')
ans =
K1,K2
Additionally, you can also get the Storage class and the qualifier type of the tunable parameters using the following commands:
>> get_param(ModelName,'TunableVarsStorageClass')
>> get_param(ModelName,'TunableVarsTypeQualifier')
In order to edit these, you have to use the "set_param" function and specify the label of the corresponding model parameter.
Regards,
Vidya Viswanathan
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Event Functions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!