How get state-space model from simulink model

3 vues (au cours des 30 derniers jours)
Aleksey
Aleksey le 20 Oct 2011
Commenté : SinanB le 11 Juil 2017
Hello.
How can I get a state space model from simulink power_PSS model? power_PSS is a Kundur two area model. I tried to use linmod() and linmod2() but get error message
??? Error using ==> fileparts at 17 Input must be a row vector of characters.
Error in ==> load_system at 19 [path, sys, ext] = fileparts(sys); %#ok<NASGU>
Error in ==> getLinNormalModeBlocks at 22 load_system(mdl);
Error in ==> dlinmod at 107 [normalblks,normalrefs] = getLinNormalModeBlocks(model);
Error in ==> linmod at 60 [varargout{1:max(1,nargout)}] = dlinmod(model, Ts, varargin{:}, Args);
Thank you!
  2 commentaires
Kaustubha Govind
Kaustubha Govind le 20 Oct 2011
What is the exact command that you are using? It seems like there could be some special characters in the file name you are providing to LINMOD.
Aleksey
Aleksey le 24 Oct 2011
It was stupid mistake. I forgot to use ', because I used the model name, but not the path to it. Thank you.

Connectez-vous pour commenter.

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 20 Oct 2011
>> linmod('power_PSS')
SimPowerSystems processing circuit #1 of power_PSS ...
Computing state-space representation of linear electrical circuit ...
(68 states ; 35 inputs ; 47 outputs ; 9 switches)
Computing steady-state values of currents and voltages ...
Building the Simulink model inside "powergui" block ...
Ready.
ans =
a: [252x252 double]
b: [252x0 double]
c: [0x252 double]
d: []
StateName: {252x1 cell}
OutputName: {0x1 cell}
InputName: {0x1 cell}
OperPoint: [1x1 struct]
Ts: 0
  3 commentaires
rishi sharma
rishi sharma le 17 Nov 2015
Hi Thanks for posting this discussion- Does linmod('power_PSS') give input and output matrices?
in my trials they came in as null. Is there a way around for this problem with linmod or some other method needs to be tried
thanks for the help.
SinanB
SinanB le 11 Juil 2017
the output matrix 'D' is usually a null one!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Trimming and Linearization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by