How to Programmatically Disable the "Tunable" Option for a Matlab Funcion Block Parameter
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Greg
am 4 Apr. 2013
Bearbeitet: Frank
am 19 Mär. 2020
I'm trying to use a script to build a Simulink model with a "Matlab Function Block" in it. The method here works great to make the block. I want to use Parameter inputs to load data files into the function that only need to be loaded at the begnnning of the simulation. To do this, I use "Parameter" inputs to the function. The method here works to make inputs defined in the script as Parameters. However, I need to make these parameters non-tunable in order for the model to be able to run properly, but the default is for them to be tunable. I can't find any method in the Stateflow.EMChart object for the block or the Stateflow.Data object for the parameter itself that will let me disable that option.
Anyone seen this before?
Thanks,
Greg
0 Kommentare
Akzeptierte Antwort
Kaustubha Govind
am 4 Apr. 2013
This should work:
set(ins, 'Scope', 'Parameter', 'Tunable', false);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink 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!