Controlled sine wave#

block

Block appearance in REPEAT VISION#

 The block is vectorized and represents a controlledsinusoidal voltage source, described by the equation (1):

(1)#\[\begin{split} y =\begin{cases}0 , & \ если ~ x_1<1\\x_2\cdot sin{\left(x_3\cdot t+x_4\right)}, & \ 1\le x_1<2, \\y(t-∆t), & 2\le x_1\end{cases} \end{split}\]

where:

 \(x_1\) – control;

 \(t\) – current integration step;

 \((t-∆t)\) – previous integration step.

1.  Properties#

No

2.  Inputs and outputs#

Parameters

input/output

Description

Units of measurement

Port type

Control signal

Input

Control signal (
1) u < 1 - turn off/restart
2) u < 2 - signal generation
3)u >= 2 - pause, the last value is saved)

-

Automation

Amplitude

Input

Amplitude

-

Automation

Angular frequency

Input

Angular frequency

rad/s

Automation

Phase

Input

Phase

rad

Automation

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