modelDiscreteStateSpace2
Discrete linear time invariant state space system block parameterized with a continuous state space system
Extends from Controller.Icons.PartialBlockIcon (Icon for a discrete/continuous block).
Information
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,:] | ABCD | Continuous linear time-invariant system | |
| Integer | nx | size(A, 1) | Number of states |
| Integer | nu | size(B, 2) | Number of inputs |
| Integer | ny | size(C, 1) | Number of outputs |
| Types.MethodWithGlobalDefault | methodType | Modelica_LinearSystems2.Controller.Types.MethodWithGlobalDefault.UseSampleClockOption | Type of discretization |
| Types.Method | method | convertToMethod(methodType, sampleClock.methodType) | Discretization method (explicitEuler/implicitEuler/trapezoidal/stepExact/rampExact) |
| Integer | sampleFactor | 1 | Factor so that sample time=sampleClock.sampleTime*sampleFactor |
| Types.Init | init | Type of initialization (NoInit/Steady State/InitialState/InitialOutput) | |
| Real[nx] | x_start | zeros(nx) | Initial value of continuous state x, if init=InitialState (otherwise guess value) |
| Real[ny] | y_start | zeros(ny) | Initial value of continuous output y, if init=InitialOutput (otherwise guess value) |
| Boolean | withDelay | false | True, if a unit delay should be considered |
| Modelica.Units.SI.Time | Ts | sampleClock.sampleTime*sampleFactor | Sample time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[nu] | u | Continuous or discrete input signals of block | |
| Modelica.Blocks.Interfaces.RealOutput[ny] | y | Discrete output signals of block | |
| Modelica.Blocks.Interfaces.RealOutput[nx] | x | State vector of continuous system at sample times |