DDELSSM – Discrete state space model with time delay
Block SymbolLicensing group: ADVANCED
Function Description
The DDELSSM block (Discrete State Space Model with time DELay) simulates behavior of a linear system
with time delay :
where is the simulation step, is the state vector, is the initial value of the state vector, is the input vector, is the output vector. The matrix is the system dynamics matrix, is the input matrix, is the output matrix and is the direct transmission (feedthrough) matrix. If UD=off, the matrix is not used during simulation (it behaves as if it were zero). Number of steps of the delay is the largest integer such that , where 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 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 outputs are used, where 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) |
[Previous] [Back to top] [Up] [Next]
2024 © REX Controls s.r.o., www.rexygen.com