Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » Waap
  • » Profile

Posts

Posts

Dec-04-18 10:46:22
reset output of greaterThreshold to False
Category: Programming

Hello,
in my Model I use a greaterThreshold block.

The threshold is 0.
The input u is a value between 0 and 1.

When the input becomes greater 0 the greaterThreshold output y is True.
When the input goes back to 0 the greaterThreshold output y stays at True and does not become False.

My goal is to make the greaterThreshold output false again when the input becomes 0 again.

regards

Nils

  • Index
  • » Users
  • » Waap
  • » Profile
You are here: