User`s guide
Sine Wave
5-399
In all discrete modes (see below), the block buffers the sampled sinusoids into
frames of size M, where M is specified by the
Samples per frame parameter.
The output is a frame-based M-by-N matrix with frame period M
∗T
s
, where T
s
is specified by the
Sample time parameter. For M=1, the output is
sample-based.
The
Sample mode parameter specifies the block’s sampling property, which
can be
Continuous or Discrete, described below:
•
Continuous
In continuous mode, the sinusoid in the ith channel, y
i
, is computed as a
continuous function,
or
and the block’s output is continuous. In this mode, the block’s operation is the
same as that of a Simulink Sine Wave block with
Sample time set to 0. This
mode offers high accuracy, but requires trigonometric function evaluations
at each simulation step, which is computationally expensive. Additionally,
because this method tracks absolute simulation time, a discontinuity will
eventually occur when the time value reaches its maximum limit.
Note also that many blocks in the DSP Blockset do not accept
continuous-time inputs.
y
2000πt()sin channel 1()
2 1000πt()sin channel 2()
3 500πt
π
2
---+
sin channel 3()
=
y
i
A
i
2πf
i
t φ
i
+()sin=
real()
y
i
A
i
e
j 2πf
i
t φ
i
+()
=
complex()