User`s guide
Sine Wave
5-403
length must be the same as that specified for the Frequency and Phase
parameters. Tunable; the amplitude values can be altered while a
simulation is running, but the vector length must remain the same.
Frequency
A length-N vector containing the frequencies, in rad/s, of the sine waves in
each of N output channels, or a scalar to be applied to all N channels. The
vector length must be the same as that specified for the
Amplitude and
Phase parameters. Tunable; the frequency values can be altered while a
simulation is running, but the vector length must remain the same. Not
tunable in Simulink’s external mode when using the differential method.
Phase
A length-N vector containing the phase offsets, in radians, of the sine
waves in each of N output channels, or a scalar to be applied to all N
channels. The vector length must be the same as that specified for the
Amplitude and Frequency parameters. Tunable; the phase values can be
altered while a simulation is running, but the vector length must remain
the same. Not tunable in Simulink’s external mode when using the
differential method.
Sample mode
The block’s sampling behavior,
Continuous or Discrete.
Output complexity
The type of waveform to generate:
Real specifies a real sine wave,
Complex specifies a complex exponential. Tunable.
Computation method
The method by which discrete-time sinusoids are generated:
Trigonometric fcn, Table lookup, or Differential. This parameter is
disabled when
Continuous is selected from the Sample mode parameter.
For details, see “Discrete Computational Methods” on page 5-400.
Optimize table for
Optimizes the table of sine values for
Speed or Memory (this parameter is
enabled only when the
Computation method parameter is set to Table
lookup)
. When optimized for speed, the table contains k elements, and
when optimized for memory, the table contains k/4 elements, where k is the
number of input samples in one full period of the sine wave.