TriggeredTrapezoid
Triggered trapezoid generator
Library
Blocks/Logical
Description
The block TriggeredTrapezoid has a Boolean input and a real output signal and requires the parameters amplitude, rising, falling and offset. The output signal y represents a trapezoidal signal dependent on the input signal u.
The behaviour is as follows: Assume the initial input to be false. In this case, the output will be offset. After a rising edge (i.e., the input changes from false to true), the output is rising during rising to the sum of offset and amplitude. In contrast, after a falling edge (i.e., the input changes from true to false), the output is falling during falling to a value of offset.
Note, that the case of edges before expiration of rising or falling is handled properly.
Parameters
Name | Label | Description | Data Type | Valid 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 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of scalars | true | |
mo_u/start | start | Cell of scalars | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Boolean input signal | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |