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.

Inputs

none

Outputs

  • output - output signal port.

Properties:

  • SpanyA (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.
  • Displacementy0, ordinate of the base of the "tooth" (lower point) of the saw.
Properties can be vectors: yA = [yA 1, yA 2,…,yA n], = [T1, T2,…,Tn] and y0 = [y0 1, y0 2,…,y0 n], the dimensions of which must be the same, in which case a vector signal will also be formed at the output:

Parameters

none

Прим.:
  1. By default, the block generates a scalar output signal.
  2. 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.
  3. Comparison of Sawtooth, Reverse sawtooth and Triangular signal Blocks:

    Рисунок 1. Comparison of sawtooth signals

Related materials