Trapezoid

Generate trapezoidal signal of type Real

 Description The Trapezoid component has a real output that is a trapezoid signal. The alternating boolean parameter, when true, causes the sign of the output to alternate from one period to the next.

Connections

 Name Description Modelica ID $y$ Real output signal y

Parameters

 Name Default Units Description Modelica ID alternating $\mathrm{false}$ True (checked) means amplitude alternates sign alternate amplitude $1$ $1$ Amplitude of trapezoid amplitude offset $0$ $1$ Offset of output signal offset ${T}_{0}$ $0$ $s$ Time offset of the signal startTime ${T}_{r}$ $0$ $s$ Rising duration of trapezoid rising ${T}_{f}$ $0$ $s$ Falling duration of trapezoid falling T $s$ Time for one period period w $0.5$ $s$ Width duration of trapezoid width ${n}_{\mathrm{period}}$ $-1$ Number of periods (negative means infinite number of periods) nperiod

 Modelica Standard Library The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.