| RESPITE: The CASA Toolkit Page: Documentation: Block Library Index:SineWave |
SineWave is a periodic signal generator block that generates a sine wave. There are 5 controlling parameters: SAMPLE_RATE, DURARION, FREQ, AMP, and initial PHASE.
SAMPLE_RATE is in units of samples per second, DURATION is measured in seconds, FREQ in cycles per second and PHASE in radians. The sine wave has maximum and minimum values of +AMP and -AMP.
| Inputs | Meaning | Sample | 1-D frame | |
|---|---|---|---|---|
| No inputs | ||||
| Outputs | Meaning |
|---|---|
| out1 | generated signal |
| Parameters | Type | Default | Meaning |
|---|---|---|---|
| SAMPLE_RATE | Float | - | Number of samples per second |
| DURATION | Float | - | Duration in seconds of signal to generate |
| FREQ | Float | - | The sine wave frequency |
| AMP | Float | 1.0 | The sine wave amplitude |
| PHASE | Float | 0.0 | The initial phase in radians |