Programming Examples
Measuring Harmonic Distortion (RS-232 )
for (lNum=2 ;lNum<=lMaxHarmonic ;lNum++ )
printf("Relative amplitude of Harmonic[%d] : %lf dB c
\n",lNum,fRelAmptd[lNum]) ;
/*Total harmonic distortion in percent* /
printf("Total Harmonic Distortion : %lf percent\n", dPrcntDistort) ;
/*Close the session* /
viClose(viESA) ;
viClose(defaultRM) ;
}
3-86
Chapter 3