20.6.1.4. Cosine
The Cosine block outputs a cosine wave signal of:
Time-based type
Sample-based type
The time-based type of cosine wave is defined by the following equation.
\({y}={Amp} \cdot \cos {\left( {t}\cdot {Frequency + Phase} \right)}+{Bias}\)
The sample-based type cosine wave is defined by the following equation.
\({y}={Amp} \cdot \cos { \left( 2 \pi \cdot \left( \frac{t}{S_{Period} \cdot t_{Sample}}+\frac{N_{Offset}}{S_{Period}} \right) \right) } +Bias\)
- where,
- \(t\) is the simulation time\(y\) is the output.
Dialog box
Parameter(s) |
Description |
|
Cosine Type |
Select Time-based or Sample-based. |
|
Amplitude |
Enter the amplitude of cosine wave. |
|
Bias |
Enter the offset value of cosine wave. |
|
Frequency(rad/sec) |
Enter the frequency of time-based cosine wave. |
|
Phase (rad) |
Enter the phase angle of time-based cosine wave. |
|
Samples per Period |
\(S_{period}\) |
Enter the number of samples per period for the sample-based cosine wave. |
Number of Offset Samples |
\(N_{offset}\) |
Enter the discrete phase offset in the number of sample times of sample-based cosine wave. |
Sample Time |
\(t_{sample}\) |
Enter the time interval between samples
|