2025-01-17 21:06:51 +01:00
|
|
|
<pre>
|
|
|
|
class Monitor
|
|
|
|
|
|
|
|
InputReal x; // plant output
|
|
|
|
OutputBoolean y;
|
|
|
|
|
|
|
|
Boolean z;
|
|
|
|
initial equation
|
|
|
|
y = false;
|
|
|
|
equation
|
|
|
|
z = (time > 0) and (x > 0) and (x < 5);
|
|
|
|
algorithm
|
|
|
|
when edge(z) then
|
|
|
|
y := true;
|
|
|
|
end when;
|
|
|
|
end Monitor;
|
2023-06-24 13:42:48 +02:00
|
|
|
</pre>
|