Export transfer functions from Control System Design App

조회 수: 13 (최근 30일)
Gili
Gili 2022년 12월 15일
댓글: Matt 2025년 12월 20일 21:42
In the Control System Design App I tuned the gains in my model according to my requirements (simple gains block without PID or Filters blocks). After I finished tuning I want to export the tuned gains but I also want to export the transfer functions Simulink create (The TFs that represented in the graphs I tuned according to them).
The default name of these TFs is "LoopTrasfer_(Hierarchy of the block you want to tune)", but I cannot see this TF in the app and cannot export it to MATLAB work space.
I didn't find any way to do that, although it seems to me that it supposed to be pretty basic capability. I am working with MATLAB 2020a.

답변 (1개)

Sam Chak
Sam Chak 2022년 12월 15일
Check if you can click <Export> and able to select the desired model LoopTransfer_C from list in the Export Model dialog box.
If you can export the Loop Transfer model to Workspace, then enter this to obtain the transfer function:
tf(LoopTransfer_C)
  댓글 수: 1
Matt
Matt 2025년 12월 20일 21:42
This yields the open-loop transfer function C(s)G(s), I believe. It seems to me that that @Gili wanted the closed-loop transfer function, based on the comment that it should be the one "that represented in the graphs [she] tuned according to them." To get the closed-loop transfer function, one could enter
feedback(tf(LoopTransfer_C), 1)

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

카테고리

Help CenterFile Exchange에서 Classical Control Design에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by