distributedelay (MathScript RT Module Function)
- Updated2023-03-14
- 2 minute(s) read
distributedelay (MathScript RT Module Function)
Owning Class: convert
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
SysDel = distributedelay(SysIn)
[inputdist, outputdist, transdist] = distributedelay(transdelay)
[inputdist, outputdist, transdist] = distributedelay(inputdelay, outputdelay, transdelay)
Legacy Name: distdelay
Description
Distributes the total delay of a system into input, output, and transport delays such that the transport delays are minimal. This function allocates the majority of the delays as input or output delays. The remaining delays become transport delays.
Inputs
| Name | Description |
|---|---|
| SysIn | Specifies a linear time-invariant (LTI) system model in transfer function, zero-pole-gain, or state-space form. |
| inputdelay | Specifies the input delay of a model. For continuous models, this value is seconds. For discrete models, this value is in number of samples. inputdelay is a real vector. |
| outputdelay | Specifies the output delay of a model. For continuous models, this value is seconds. For discrete models, this value is in number of samples. outputdelay is a real vector. |
| transdelay | Specifies the transport delay of a model. For continuous models, this value is seconds. For discrete models, this value is in number of samples. transdelay is a real matrix. |
Outputs
| Name | Description |
|---|---|
| SysDel | Returns the SysIn model with the total delay distributed to minimize the transport delay. |
| inputdist | Returns the inputdelay vector with the total delay distributed to minimize the transport delay. |
| outputdist | Returns the outputdelay vector with the total delay distributed to minimize the transport delay. |
| transdist | Returns the transdelay matrix with a minimal amount of transport delay. |
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
inputdelay = [1 3 4];
outputdelay = [2 3 5];
transdelay = [3 2 3; 4 3 1; 4 1 2];
[inputdist, outputdist, transdist] = distributedelay(inputdelay, outputdelay, transdelay);