Sinusoid

| Vectorized | C |
in the palette on the schematic

The block is vectorized. It forms a sinusoidal output signal:

where a is the amplitude, ω is the circular frequency, rad/s; f is the phase, rad; t is the current model time in seconds.

Inputs

none

Outputs

  • output - the port of the output value.

Properties:

  • Amplitude - coefficient a;
  • Frequency - coefficient ω;
  • Phase - coefficient f;
The properties can be vectors a = [a1,a2,…,an], ω = [ω1,ω2,…,ωn] и f = [f1,f2,…,fn], the dimensions of which must be the same, in which case the output will also be a vector: yi(t) = ai·sin(ωit+fi), i = 1..n.

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.

Related materials