Owning Class: modeling and prediction
Requires: MathScript RT Module
dimpulse(num, den, tf)
dimpulse(A, B, C, D, ui)
dimpulse(A, B, C, D, ui, tf)
[Y, X] = dimpulse(num, den, tf)
[Y, X] = dimpulse(A, B, C, D, ui)
[Y, X] = dimpulse(A, B, C, D, ui, tf)
[Y, X, T] = dimpulse(num, den, tf)
[Y, X, T] = dimpulse(A, B, C, D, ui)
[Y, X, T] = dimpulse(A, B, C, D, ui, tf)
Computes the impulse response of the discrete system model. You can use this function to return the impulse response of the model outputs. This function assumes the initial states of the model are zeros. If you do not request an output, this function plots the impulse response in the current plot window.
| Name | Description |
|---|---|
| num | Specifies the numerator polynomial function of a transfer function equation. num is a real vector. |
| den | Specifies the denominator polynomial function of a transfer function equation. den is a real vector. |
| 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. |
| ui | Specifies the index number of the model. The default is 1. |
| tf | Specifies the final time for the impulse response. |
| Name | Description |
|---|---|
| Y | Returns the time response of the outputs of the model due to the impulse input. 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. |
| T | Returns the uniformly spaced time vector this function uses to calculate the impulse response and the state trajectories. T is a real vector. |
This function is supported in the LabVIEW Run-Time Engine only if you request an output from the function. This function can remain in your scripts when you build a stand-alone application or shared library, but if you do not request an output, the LabVIEW Run-Time Engine does not execute this function. If you request an output, the LabVIEW Run-Time Engine executes this function as normal.
num = 1;
den = [1, 1];
dimpulse(num, den, 16)