drandss (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
drandss (MathScript RT Module Function)
Owning Class: construct
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
SysOutSS = drandss(n)
SysOutSS = drandss(n, r)
SysOutSS = drandss(n, r, m)
SysOutSS = drandss(n, r, m, Ts)
Legacy Name: drss
Description
Generates a discrete random linear time-invariant (LTI) system model in state-space form. The model is of an order you specify and has a sampling time of one second. You also can specify the number of inputs and outputs of the model.
Inputs
| Name | Description |
|---|---|
| n | Specifies the order of the state matrix A of the SysOutSS model. n is the number of states and the dimensions of A. n is an integer scalar. |
| r | Specifies the number of outputs from the SysOutSS model. The default value is 1. r is an integer scalar. |
| m | Specifies the number of inputs to the SysOutSS model. The default value is 1. m is an integer scalar. |
| Ts | Specifies the sampling time of the model, in seconds. The default value is 1. |
Outputs
| Name | Description |
|---|---|
| SysOutSS | Returns an n-th-order discrete LTI model in state-space form. This model has n states, r outputs, m inputs, and a sampling time of Ts. You can use the d_to_d function to resample this model. |
Details
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | Yes |
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Not characterized |
Examples
SysOutSS = drandss(4, 3, 2)