DDELSSM – Discrete state space model with time delay

Block SymbolLicensing group: ADVANCED
Qt SVG Document Exported by REXYGEN Studio R1 HLD u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 iE y1 y2 y3 y4 y5 y6 y7 y8 y9 y10 y11 y12 y13 y14 y15 y16 DDELSSM

Function Description
The DDELSSM block (Discrete State Space Model with time DELay) simulates behavior of a linear system with time delay del:

x(k + 1) = Adx(k) + Bdu(k d),x(0) = x0 y(k) = Cdx(k) + Ddu(k),

where k is the simulation step, x(k) n is the state vector, x0 n is the initial value of the state vector, u(k) m is the input vector, y(k) p is the output vector. The matrix Ad n×n is the system dynamics matrix, Bd n×m is the input matrix, Cd p×n is the output matrix and Dd p×m is the direct transmission (feedthrough) matrix. If UD=off, the matrix Dd is not used during simulation (it behaves as if it were zero). Number of steps of the delay d is the largest integer such that d.T del, where T is the block execution period.

All matrices are specified in the same format as in Matlab, i.e. the whole matrix is placed in brackets, elements are entered by rows, elements of a row are separated by spaces (blanks), rows are separated by semicolons. The x0 vector is a column, therefore the elements are separated by semicolons (each element is in a separate row).

During the real-time simulation, single simulation step of the above discrete state space model is computed in each execution time instant. Outputs of the simulated system y1..y16 represent the state of the system x(t) and for a given simulation, the first p outputs are used, where p is the number of rows of the matrix Cd.

The output iE is an integer and contains information about the simulation progress:

  • 0: everything is OK, the block simulates correctly
  • -213: incompatibility of the dimensions of the state space model matrices
  • xxx: error code xxx of the REXYGENsystem, see more in Appendix C

This block propagates the signal quality. More information can be found in the 1.4 section.

Input

R1

Block reset

Bool

HLD

Hold current model state

Bool

u1..u16

Analog input of the block

Double (F64)

Parameter

UD

Matrix Dd usage

Bool

del

Model delay [s]   0.0

Double (F64)

Ad

Matrix A of the discrete model  [0.235700090 -0.904208075 -0.120785644; 0.671031354 0.477271377 -0.072129196; 0.400717757 0.815289746 0.974161395]

Double (F64)

Bd

Matrix B of the discrete model  [0.335515677; 0.200358878; 0.071773902]

Double (F64)

Cd

Matrix C of the discrete model  [0.12 0.48 0.36]

Double (F64)

Dd

Matrix D of the discrete model  [0]

Double (F64)

x0

Initial value of the state x  [0; 0; 0]

Double (F64)

Output

iE

Error code

Error

y1..y16

Analog output of the block

Double (F64)

2024 © REX Controls s.r.o., www.rexygen.com