block BooleanChange "Indicates Boolean signal changing"
extends Interfaces.BooleanSISO;
equation
y = change(u);
annotation (
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Text(
extent = {
{-90, 36},
{90, -36}},
lineColor = {160, 160, 164},
textString = "change()")}),
Documentation(info = "<html>\n<p>\nThis block sets the Boolean output <strong>y</strong> to true, when the\nBoolean input <strong>u</strong> shows a <em>rising or falling edge</em>,\ni.e., when the signal changes:\n</p>\n<pre> y = <strong>change</strong>( u );\n</pre>\n</html>"));
end BooleanChange;