PPA5xx/15xx user manual
9-8
The fundamental in-phase and quadrature values of a
periodic waveform, v(), are given by:
2
a
1
= 1/
v().cos() d
0
2
b
1
= 1/
v().sin() d
0
For a sampled signal, the formulae become:
i = n-1
a
1
= 1/n
v[i].cos(2ci/n)
i = 0
i = n-1
b
1
= 1/n
v[i].sin(2ci/n)
i = 0
Where n is the number of samples for an integral number
of complete cycles of the input waveform, and c is the
number of cycles.
These ‘a’ and ‘b’ values yield the further elementary
parameters:
magnitude = (a
2
+ b
2
)
phase angle = tan
-1
(b/a)