Download Help (Windows Only) |
Owning Class: modeling and prediction
Requires: MathScript RT Module
dlsim(A, B, C, D, U)
dlsim(A, B, C, D, U, x0)
[Y, X] = dlsim(A, B, C, D, U)
[Y, X] = dlsim(A, B, C, D, U, x0)
Computes the linear simulation of a discrete system model. This function uses discrete simulation to calculate the output of the model when a set of inputs excite the model. If you do not request an output, this function plots the linear simulation in the current plot window.
Name | Description |
---|---|
A | Specifies an n-by-n state matrix, where n is the number of model states. A is a real matrix. |
B | Specifies an m-by-n input matrix, where m is the number of model inputs. B is a real matrix. |
C | Specifies an r-by-n output matrix, where r is the number of model outputs. C is a real matrix. |
D | Specifies an r-by-m direct transmission matrix. D is a real matrix. |
U | Specifies the inputs that excite the system. The time step of the model must match the time step of the U input. U is a real matrix. |
x0 | Specifies the initial states of the model. The i-th element of x0 corresponds to the i-th initial state. The default is all zeros. x0 is a real vector. |
Name | Description |
---|---|
Y | Returns the time response of the outputs of the model due to the conditions you specify in x0. Y is a real matrix. |
X | Returns the time response of the states of the model due to the step input. X is a real matrix. |
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | Yes (if you request output) |
Supported on RT targets | Yes (if you request output) |
Suitable for bounded execution times on RT | Not characterized |
A = [0, 1; -1, 0];
B = [0; 1];
C = B';
D = 1;
U = 1:25;
x0 = [1; 1];
[Y, X] = dlsim(A, B, C, D, U, x0);