Triangular signal
![]() |
![]() |
| Vectorized | |
in the palette |
on the schematic |
The block forms a periodic triangular signal at the output (half of the signal of the Sawtooth type and the other half is Reverse sawtooth-type signal):

where yA, T, y0 are the properties of the block, y(t) is the output signal, t is the current model time in seconds, frac(t/T) is the fractional part.

where yA, T, y0 are the properties of the block, y(t) is the output signal, t is the current model time in seconds, frac(t/T) is the fractional part.
Inputs
none
Outputs
- output - output signal port.
Properties
- Span – yA (height of the full saw "tooth", signal amplitude). The amplitude of the triangular signal at the output of the block is yA/2.
- Period – the period of the triangular pulses T.
- Displacement – y0, ordinate of the base of the "tooth" (lower point) of the saw.

Parameters
none
Note:
- By default, the block generates a scalar output signal.
- Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.
- Comparison of Sawtooth, Reverse sawtooth and Triangular signal Blocks:

Figure 1. Comparison of sawtooth signals

