Test 2-7: Spurious And Non-Harmonic Distortion - HP E1340A Service Manual

Function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

Test 2-7: Spurious
and Non-Harmonic
Distortion
Appendix A
getchar ();
}
iprintf (id, "*RST;*CLS\n");
iclose (id);
}
The purpose of this test is to verify that the AFG meets its specifications for
non-harmonic and spurious distortion.
/* Spurios/Non-Harmonic Distortion Performance Verification Test
#include <stdio.h>
#include <sicl.h>
#include <math.h>
#define ADDR "hpib7,9,10"
void main (void)
{
INST id;
double peak;
double start[9] = {1E6,10.5E6,21E6,31E6,41E6,51E6,75E6,100E6,125E6};
double stop[9] = {9.5E6,19E6,29E6,39E6,49E6,75E6,100E6,125E6,150E6};
int i;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
/*--------------------Set up Spectrum Analyzer-----------------------------*/
printf ("\n\nSet up Spectrum Analyzer");
printf ("\n\n 1. Ref Level = 10 dBm");
printf ("\n 2. Resolution BW = 3 kHz");
printf ("\n 3. Video BW = 3 kHz");
printf ("\n 4. Connect Spectrum Analyzer to AFG Output");
printf ("\n\nPress ENTER when ready");
getchar ();
/*--------------------Initialize AFG---------------------------------------*/
iprintf (id, "*RST;*CLS\n");
/* Close instrument session */
/* Address of device */
/* Define id as an instrument */
/* Open instrument session */
Verification Tests - C Programs 99
E1340A */

Advertisement

Table of Contents
loading

Table of Contents