Export transfer functions from Control System Design App

13 次查看(过去 30 天)
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 about 13 hours 前
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