SAWTOOTH_f
Sawtooth generator
Block Screenshot
![](/docs/2023.0.0/ru_RU/SAWTOOTH_f.png)
Contents
Description
This block is a sawtooth wave generator. The output of the block is described by the equation:
At first event on its activation input, the output increases linearly from 0 with a unitary rate. When the following event occurs, the output goes to 0 and begin again to increase until the next event and so on.
The resulting amplitude of the output is equal to the period of event signal. If you want more control on the amplitude or a negative rate, use the Sigbuilder or Curve_f blocks.
Data types
Output: scalar double.
Default properties
always active: yes
direct-feedthrough: no
zero-crossing: no
mode: no
regular outputs:
- port 1 : size [1,1] / type 1
number/sizes of activation inputs: 1
number/sizes of activation outputs: 0
continuous-time state: no
discrete-time state: yes
object discrete-time state: no
name of computational function: sawtth
Example
This diagram shows the output of the SAWTOOTH_f block with an event period of 2 seconds and an offset of 1 second on event generation.
![](/docs/2023.0.0/ru_RU/SAWTOOTH_f_1.png)
Interfacing function
SCI/modules/scicos_blocks/macros/Sources/SAWTOOTH_f.sci
Computational function
SCI/modules/scicos_blocks/src/fortran/sawtth.f (Type 0)
See also
- GENSQR_f — Square wave generator
- GENSIN_f — Sine wave generator
- Sigbuilder — Signal creator/generator
- Curve_f — Signal creator/generator
Report an issue | ||
<< RFILE_f | Sources palette | STEP_FUNCTION >> |