Triangular signal#

block

Block appearance in REPEAT VISION#

  Triangular wave block creates a periodic triangular signal at the output (half of Sawtooth wave type signal and half of Sawtooth reverse wave type signal) (1):

(1)#\[\begin{split} y =\begin{cases}H\cdot \left(1-\frac{\left(t-t_0\right)\cdot modT}{T}\right)+y_0 , & \ \frac{\left(t-t_0\right)\cdot modT}{T}<0,5\\H\cdot \frac{\left(t-t_0\right)\cdot modT}{T}+y_0,\ \ & \ \frac{\left(t-t_0\right)\cdot modT}{T}\geq0,5\end{cases} \end{split}\]

where:

 \(T\) - period, [s];

 \(H\) - height of a tooth, [m];

 \(t_0\) – initial phase, [s];

 \(y_0\) - minimum value.

1.  Properties#

Property

Default value

Description

Units of measurement

Period

1.0

-

s

Phase

0.0

-

s

Sawtooth height

1.0

Maximum value

-

Minimum value

0.0

-

-

Sampling type:
Fundamental project frequency decimation;
Sample time;
Sampling frequency

Fundamental project frequency decimation

-

-

Decimation factor of project fundamental discretization frequency, available when selecting Sampling type - Fundamental project frequency decimation

1

-

-

Sample time, available when selecting Sampling type - Sample time

0.05

-

s

Sampling frequency, available when selecting Sampling type - Sampling frequency

20.0

-

Hz

2.  Inputs and outputs#

Parameters

input/output

Description

Units of measurement

Port type

Output

Output

Signal

-

Automation

In order to see the connection capabilities of the block, you need to go to page Description of block ports

3.  Code generation#

Important

Block supports C source code generation

See also

An example of using this block can be found in sections: