TriggeredTrapezoid

Triggered trapezoid generator

    TriggeredTrapezoid

Library

Modelica/Blocks/Logical

Description

The block TriggeredTrapezoid has a Boolean input and a realoutput signal and requires the parameters amplitude,rising, falling and offset. Theoutput signal y represents a trapezoidal signal dependent on theinput signal u.

The behaviour is as follows: Assume the initial input to be false. In thiscase, the output will be offset. After a rising edge (i.e., the inputchanges from false to true), the output is rising during rising to thesum of offset and amplitude. In contrast, after a fallingedge (i.e., the input changes from true to false), the output is fallingduring falling to a value of offset.

Note, that the case of edges before expiration of rising or falling ishandled properly.

Parameters

TriggeredTrapezoid_0

NameLabelDescriptionData TypeValid Values

mo_amplitude

amplitude

Amplitude of trapezoid

Scalar

mo_rising

rising

Rising duration of trapezoid

Scalar

mo_falling

falling

Falling duration of trapezoid

Scalar

mo_offset

offset

Offset of output signal

Scalar

TriggeredTrapezoid_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

'endValue'
'rate'
'T'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Boolean input signal

input

1

y

implicit

Connector of Real output signal

output

1