Group Abstract Group Abstract

Message Boards Message Boards

Need help creating a modified version of the NOR block

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.

POSTED BY: Safi Ahmed
POSTED BY: Patrik Ekenberg
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard