ChangingEdge

Output y is true, if the input u has either a rising or a falling edge and otherwise it is false (y=change(u))

    ChangingEdge

Library

Modelica/Blocks/MathBoolean

Description

A changing edge, i.e., either rising or falling,of the Boolean input u results in y = true at thistime instant. At all other time instants, y = false.

The usage is demonstrated, e.g., in exampleModelica.Blocks.Examples.BooleanNetwork1.

Parameters

ChangingEdge_0

NameLabelDescriptionData TypeValid Values

mo_pre_u_start

pre_u_start

Value of pre(u) at initial time

Scalar

true
false

ChangingEdge_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Boolean input signal

input

1

y

implicit

Boolean output signal

output

1

See Also