functiontoTransferFunction
Generate a transfer function from a SISO state space representation
Information
Syntax
tf = StateSpace.Conversion.toTransferFunction(ss)
Description
Computes a TransferFunction record
n(s) b0 + b1*s + ... + bn*s^n
tf = ------ = --------------------------
d(s) a0 + a1*s + ... + an*s^n
The algorithm uses StateSpace.Conversion.toZerosAndPoles to convert the state space system into a zeros and poles representation first and after that ZerosAndPoles.Conversion.toTransferFunction to generate the transfer function.
Example
Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
A = [-1.0, 0.0, 0.0;
0.0,-2.0, 0.0;
0.0, 0.0,-3.0],
B = [1.0;
1.0;
0.0],
C = [1.0,1.0,1.0],
D = [0.0]);
algorithm
tf:=Modelica_LinearSystems2.StateSpace.Conversion.toZerosAndPoles(ss);
// 2*s + 3
// tf = -----------------
s^2 + 3*s + 2
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.StateSpace | ss | StateSpace object |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.TransferFunction | tf |
Revisions
| Date | Author | Comment |
|---|---|---|
| 2010-05-31 | Marcus Baur, DLR-RM | Realization |