Introduction - If you have any usage issues, please Google them yourself
This sample program generates two sine waves called X and Y.
It will then calculate the normalized magnitude and phase of
the two waveforms using the following formulas:
Mag = sqrt(X^2+ Y^2)/sqrt(GainX^2+ GainY^2)
Phase = (long) (atan2PU(X,Y)* 360)
The program will prompt the user to change the gain and
frequency of the X and Y waveforms.