Tune custom masked subsystems

조회 수: 4 (최근 30일)
Balazs Fischer
Balazs Fischer 2021년 2월 3일
편집: Balazs Fischer 2021년 2월 10일
Hello,
I have a question regarding simulink control system tuner. I used this system open_system('scdspeedctrlleadlag') from this tutorial https://de.mathworks.com/help/slcontrol/ug/tuning-custom-masked-subsystems.html , but not exactly like described:
I want to tune this system not with the control system designer but the control system tuner. You can select the same inputs and outputs and a step response goal and tune the system. But it seems the control system tuner is unable to update the block parameters. When you tune the results and click update blocks you get the following warning message:
Warning: The block "scdspeedctrlleadlag/Feedback Controller/Lead-Lag Controller" is not one of the supported blocks for tuning. The tuned value must be
written back manually.
> In controldesign.blockconfig/slBlockConfig/writeParamToSLMaskParameters (line 122)
In slTuner/writeBlockValue (line 63)
In systuneapp.data/ControlDesignData/updateSimulinkBlock (line 355)
In systuneapp.tabs/HomeTabNew/updateSimulinkBlock (line 51)
In systuneapp.tabs.HomeTabNew>@(es,ed)updateSimulinkBlock(this) (line 489)
In matlab.ui.internal.toolstrip/Button/ActionPerformedCallback (line 143)
In matlab.ui.internal.toolstrip.base.Control>@(event,data)ActionPerformedCallback(this,event,data) (line 328)
In matlab.ui.internal.toolstrip.base/Action/PeerEventCallback (line 839)
In matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data) (line 49)
In hgfeval (line 62)
In javaaddlistener>cbBridge (line 52)
In javaaddlistener>@(o,e)cbBridge(o,e,response) (line 47)
I need to use custom masked subsystems and if the control system tuner cannot tune then I have wasted the money for the license. I know I can extract in this example the values by hand or script but my real usecase has a lot more masked subsystems.

채택된 답변

Nitin Kapgate
Nitin Kapgate 2021년 2월 10일
편집: Nitin Kapgate 2021년 2월 10일
Currently the ability to use the Control System Tuner to tune parameters in masked subsystems is not available in Simulink Control Design. However I have brought this issue to the attention of the concerned people and it might be considered in future releases.
  댓글 수: 1
Balazs Fischer
Balazs Fischer 2021년 2월 10일
편집: Balazs Fischer 2021년 2월 10일
Thanks you for the answer.
Also I cannot see the tuned parameters to write them back manually. The most I can see is the state space representation of the tuned subsystem from which I have to calculate the parameters. Is there a way to view the parameters or get them with a script?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by