modelDiscreteStateSpace

Discrete linear time invariant state space system block parameterized with a continuous state space system
Diagram of DiscreteStateSpace

Extends from Controller.Icons.PartialBlockIcon (Icon for a discrete/continuous block).

Information

Parameters

TypeNameDefaultDescription
Modelica_LinearSystems2.StateSpacesystemContinuous linear time-invariant system
Types.MethodWithGlobalDefaultmethodTypeModelica_LinearSystems2.Controller.Types.MethodWithGlobalDefault.UseSampleClockOptionType of discretization
Types.MethodmethodconvertToMethod(methodType, sampleClock.methodType)Discretization method (explicitEuler/implicitEuler/trapezoidal/stepExact/rampExact)
IntegersampleFactor1Factor so that sample time = sampleClock.sampleTime * sampleFactor
Types.InitinitModelica_LinearSystems2.Controller.Types.Init.SteadyStateType of initialization (No init/SteadyState/InitialState/InitialOutput)
Real[nx]x_startzeros(nx)Initial value of continuous state x, if init=InitialState (otherwise guess value)
Real[ny]y_startzeros(ny)Initial value of continuous output y, if init=InitialOutput (otherwise guess value)
BooleanwithDelayfalseTrue, if a unit delay should be considered
Modelica.Units.SI.TimeTssampleClock.sampleTime*sampleFactorSample time
Integernxsize(system.A, 1)Number of states
Integernusize(system.B, 2)Number of inputs
Integernysize(system.C, 1)Number of outputs

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[nu]uContinuous or discrete input signals of block
Modelica.Blocks.Interfaces.RealOutput[ny]yDiscrete output signals of block
Modelica.Blocks.Interfaces.RealOutput[nx]xState vector of continuous system at sample times