Open the Configuration Parameters window by using the command window

Hi,
I would like to know if it is possible to open the Configuration Parameters window of a Simulink model (menu : Simulation\Configuration Parameters)(Ctrl+E) by using the command window.
If it's not clear do not hesitate to ask me more details.
Thanks

 采纳的回答

>> openDialog(getActiveConfigSet(gcs))

4 个评论

The function "openDialog" doesn't exist in my Matlab version (MATLAB Version 7.1.0.246 (R14) Service Pack 3).
Is there another way ?
Does getActiveConfigSet exist? If yes, could you look at what methods the resultant object provides by running get(getActiveConfigSet(gcs)) - perhaps something like "open"? Sorry, I don't have R14SP3 accessible right now to try this out.
I tried what you advised me. I got this :
>> get(getActiveConfigSet(gcs))
Description: ''
Components: [7x1 Simulink.ConfigComponent]
Name: 'Configuration'
SimulationMode: 'normal'
Nothing that looks like "open".
But with this :
ActiveConfigSet=getActiveConfigSet(gcs);
SolverConfig = hCs.getComponent('Solver');
get(SolverConfig);
I can get every fields of the Configuration Parameters. This is better than nothing.
Thank you for your help.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Configure Simulation Conditions 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by