Inports
| |
A | Amplitude |
f | Frequency |
Outports
| |
u | Sine wave output |
Mask Parameters | |
fmax | Maximum Frequency in Hz |
Offset | Offset |
Phase | Phase [-Pi..Pi] |
ts_fact | Multiplication factor of base sampling time (in integer format) |
Generation of a sine wave with amplitude (A) and frequency (f).
Calculation fixed point implementation:
Calculation floating point implementation (parameter f_max is ignored):
FiP8 | 8 Bit Fixed Point Implementation |
FiP16 | 16 Bit Fixed Point Implementation |
FiP32 | 32 Bit Fixed Point Implementation |
Float32 | 32 Bit Floating Point Implementation |
Float64 | 64 Bit Floating Point Implementation |
Name | FiP8 |
ID | 416 |
Revision | 1.0 |
C filename | SinGen_FiP8.c |
H filename | SinGen_FiP8.h |
8 Bit Fixed Point Implementation
Controller Parameters | |
delta_phi | Angle increment |
phase | Angle offset |
offset | Amplitude offset |
phi | Current angle |
Data Structure:
Name | FiP16 |
ID | 417 |
Revision | 1.0 |
C filename | SinGen_FiP16.c |
H filename | SinGen_FiP16.h |
16 Bit Fixed Point Implementation
Controller Parameters | |
delta_phi | Angle increment |
phase | Angle offset |
offset | Amplitude offset |
phi | Current angle |
Data Structure:
Name | FiP32 |
ID | 418 |
Revision | 1.0 |
C filename | SinGen_FiP32.c |
H filename | SinGen_FiP32.h |
32 Bit Fixed Point Implementation
Controller Parameters | |
delta_phi | Angle increment |
phase | Angle offset |
offset | Amplitude offset |
phi | Current angle |
Data Structure:
Name | Float32 |
ID | 419 |
Revision | 0.1 |
C filename | SinGen_Float32.c |
H filename | SinGen_Float32.h |
32 Bit Floating Point Implementation
Controller Parameters | |
delta_phi | Angle increment |
phase | Angle offset |
offset | Amplitude offset |
phi | Current angle |
Data Structure:
Name | Float64 |
ID | 420 |
Revision | 0.1 |
C filename | SinGen_Float64.c |
H filename | SinGen_Float64.h |
64 Bit Floating Point Implementation
Controller Parameters | |
delta_phi | Angle increment |
phase | Angle offset |
offset | Amplitude offset |
phi | Current angle |
Data Structure: