is_nearlyequal (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
is_nearlyequal (MathScript RT Module Function)
Owning Class: info
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
equal = is_nearlyequal(SysIn_1, SysIn_2)
equal = is_nearlyequal(SysIn_1, SysIn_2, tol)
Legacy Name: areequal
Description
Determines whether two models are identical within a specified tolerance.
Inputs
| Name | Description |
|---|---|
| SysIn_1 | Specifies a linear time-invariant (LTI) system in transfer function, zero-pole-gain, or state-space form. |
| SysIn_2 | Specifies an LTI system. This model must be in the same form as the SysIn_1 model. |
| tol | Specifies the tolerance. The default value of tol is 0.00000001. tol is a real scalar. |
Outputs
| Name | Description |
|---|---|
| equal | Returns 1 if the two models are equal. This function returns 0 if the two models are not equal. equal is a Boolean. |
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
SysIn_1 = ss(-1, 1, 2, 0);
SysIn_2 = (1 + 1.e-10)*SysIn_1;
is_nearlyequal(SysIn_1, SysIn_2, 1.e-9);