OnDelay
Delay a rising edge of the input, but do not delay a falling edge.
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.
The usage is demonstrated, e.g., in exampleModelica.Blocks.Examples.BooleanNetwork1.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_delayTime | delayTime | Delay time | Scalar | |
mo_delaySignal | delaySignal | delaySignal | Structure | |
mo_delaySignal/fixed | fixed | Cell of scalars | true | |
mo_delaySignal/start | start | Cell of scalars | true |
Name | Label | Description | Data Type | Valid 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' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Boolean input signal | input | 1 |
y | implicit | Boolean output signal | output | 1 |