OnDelay

Delay a rising edge of the input, but do not delay a falling edge.

    OnDelay

Library

Modelica/Blocks/MathBoolean

Description

A rising edge of the Boolean input u gives a delayed output.A falling edge of the input is immediately given to the output.

Simulation results of a typical example with a delay time of 0.1 sis shown in the next figure.

OnDelay1.png
OnDelay2.png

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

Parameters

OnDelay_0

NameLabelDescriptionData TypeValid Values

mo_delayTime

delayTime

Delay time

Scalar

mo_delaySignal

delaySignal

delaySignal

Structure

mo_delaySignal/fixed

fixed

Cell of scalars

true
false

mo_delaySignal/start

start

Cell of scalars

true
false

OnDelay_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

't_next'

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