Export transfer functions from Control System Design App

13 visualizzazioni (ultimi 30 giorni)
Gili
Gili il 15 Dic 2022
Commentato: Matt il 20 Dic 2025 alle 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.

Risposte (1)

Sam Chak
Sam Chak il 15 Dic 2022
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 Commento
Matt
Matt circa 11 ore fa
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)

Accedi per commentare.

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by