Hi! I need help regarding modifying the NOR block.
I have been trying to achieve a NOR block such that when I input all 0's in it, it gives me a 1 for 5 seconds, and then reverts back to 0.
Here's how I have modified the NOR block so far:
block ModifiedNOR
parameter Modelica.SIunits.Time startTime = time;
extends Blocks.Interfaces.partialBooleanSI2SO;
when (u1=u2)
equation
y = if startTime+5>time true else false;
end ModifiedNOR;
I would appreciate if someone shows me where am I mistaken. Thanks.