EasyManua.ls Logo

HP ESA-E Series - Page 145

HP ESA-E Series
398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 3 3-81
Programming Examples
Measuring Harmonic Distortion (RS-232)
}
void main()
{
/*Program Variables*/
ViStatus viStatus = 0;
double dFundamental = 0.0;
float fHarmV[10] ={0.0};
float fHarmDbm[10]={0.0};
float fRelAmptd[10]={0.0};
float fFundaAmptdDbm=0.0;
double dFundaAmptdV=0.0;
double dMarkerFreq = 0.0;
double dPrcntDistort =0.0;
double dSumSquare =0.0;
long lMaxHarmonic =0L;
long lNum=0L;
/*Setting default values*/
lMaxHarmonic = 5;
dFundamental = 50.0;

Table of Contents