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

TypeNameDefaultDescription
Modelica.Units.SI.TimestartTime0Start time for activating the assert
RealthreShold1E-2Threshold for equality comparison
Stringmessage"Inputs differ by more than threShold"

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu1Value to check
Modelica.Blocks.Interfaces.RealInputu2Value to check

Revisions

  • April 18, 2013, by Michael Wetter:
    Removed cardinality function as this is deprecated in the MSL specification and not correctly implemented in omc.
  • April 17, 2008, by Michael Wetter:
    First implementation.