PS Sine Wave
Generate sine wave physical signal, using simulation time as time source
Since R2021a
Libraries:
Simscape /
Foundation Library /
Physical Signals /
Sources
Description
The PS Sine Wave block outputs a sinusoidal waveform, while providing flexibility in how you specify the sine wave frequency.
In the SI unit system, the unit of frequency is hertz (Hz
), which is
defined as 1/s
. However, you can also use angular velocity units, such as
rad/s
, deg/s
, and rpm
, to measure
frequency for cyclical processes. This approach is consistent with frequency defined as
revolutions per second in a mechanical context, or cycles per second in an electrical context,
and lets you write frequency-dependent equations without requiring the 2*pi
conversion factor. For more information, see Units for Angular Velocity and Frequency.
The Frequency specification parameter lets you choose the method of specifying the frequency of the sine wave:
If you select
Frequency(SI)
, specify the frequency inHz
or in units directly convertible to Hz (such askHz
,MHz
, andGHz
). The underlying block equation is then:If you select
Angular
, specify angular frequency inrad/s
,deg/s
, orrpm
. The underlying block equation is then:
where
O | Physical signal at the output port |
amplitude | Amplitude parameter value |
frequency_si | Frequency (SI) parameter value |
angular_frequency | Angular frequency parameter value |
time | Simulation time |
phase | Phase parameter value |
bias | Bias parameter value |
The Amplitude and Bias parameter values determine whether the output signal is a scalar, vector, or matrix. If one of these parameters is a vector or a matrix, the other must be a vector or a matrix of the same size or a scalar. The output signal is then also a vector or a matrix of the same size.
Amplitude and Bias must have commensurate units. The unit at the output port is determined by unit propagation rules. If the two parameters have the same units, then the output signal unit is also the same. If the parameter units are different, then the unit of the output signal is the base unit commensurate with the units of the parameters. For more information, see Physical Signal Unit Propagation.
Ports
Output
Parameters
Extended Capabilities
Version History
Introduced in R2021a