tfinfo (MathScript RT Module Function)
- Updated2023-03-14
- 2 minute(s) read
tfinfo (MathScript RT Module Function)
Owning Class: info
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
[num, den, Ts] = tfinfo(SysInTF)
[num, den, Ts] = tfinfo(SysInTF, iy, iu)
[num, den, delay, Ts] = tfinfo(SysInTF)
[num, den, delay, Ts] = tfinfo(SysInTF, iy, iu)
Legacy Name: tfdata
Description
Returns information about a transfer function system model.
Inputs
| Name | Description |
|---|---|
| SysInTF | Specifies a linear time-invariant (LTI) system model in transfer function form. |
| iy | Specifies the index number of a model output. The default value is 1. iy is an integer scalar. |
| iu | Specifies the index number of a model input. iu is an integer scalar. |
Outputs
| Name | Description |
|---|---|
| num | Returns the coefficients of the numerator polynomial function, in descending order. num either is a real scalar or a real vector, depending on the number of coefficients. |
| den | Returns the coefficients of the denominator polynomial function, in descending order. den either is a real scalar or a real vector, depending on the number of coefficients. |
| delay | Returns the total delay present in the SysInTF model, in seconds. |
| Ts | Returns the sampling time of the SysInTF model. If the value of Ts is 0, the SysInTF model is continuous. Otherwise, the model is discrete. |
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
num1 = 1
num2 = 2
den1 = [1, 1]
den2 = [1, -1]
r = 1
m = 2
SysInTF = tf(num1, num2, den1, den2, [r, m])
[num2, den2] = tfinfo(SysInTF, 1, 2)