blockPartialInputCheck
Assert when condition is violated
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
Partial model that can be used to check whether its inputs satisfy a certain condition such as equality within a prescribed threshold.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | startTime | 0 | Start time for activating the assert |
| Real | threShold | 1E-2 | Threshold for equality comparison |
| String | message | "Inputs differ by more than threShold" |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u1 | Value to check | |
| Modelica.Blocks.Interfaces.RealInput | u2 | Value to check |
Revisions
-
April 18, 2013, by Michael Wetter:
Removedcardinalityfunction as this is deprecated in the MSL specification and not correctly implemented in omc. -
April 17, 2008, by Michael Wetter:
First implementation.