SineWaveGenerator
This block is a sine wave generator : y(t) = M*sin(F*t+P)+Offset.
Library
SignalGenerators
Description
This block generates a sine wave following the equation: y(t) = M*sin(F*t+P)+Offset, where magnitude (M), frequency (F), phase shift (P) and offset (Offset) are block parameters. Parameters are real values, either scalar or matrix. If a parameter is scalar, it applies to all signals. If a parameter is a vector its size must be consistent with other parameters.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
M | Magnitude | Amplitude of the sine wave. Real value. | Matrix | |
F | Frequency (rad/s) | Frequency of the signal. Real strictly-positive value. | Matrix | |
P | Phase (rad) | Phase shift. Real value. | Matrix | |
offs | Offset | Signal offset. Real value. | Matrix | |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | yes | Time dependency depends on block parameters. |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |