Sawtooth
![]() |
![]() |
| Vectorized | C
| |
in the palette |
on the schematic |
The block forms a periodic linearly increasing sawtooth signal at the output:

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 saw "tooth", signal amplitude);
- Period – y0 period of 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.
- The block is identical to the following calculation scheme (the properties of the Sawtooth are set equal to 2, 3 and 5):



