Functional Verification: Aux Out Test - HP E1340A Service Manual

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

Advertisement

Functional
Verification:
Aux Out Test
Appendix A
/*--------------------Initialize AFG and Command Module--------------------*/
iprintf (id, "*RST;*CLS\n");
iprintf (cm, "*RST\n");
iprintf (cm, "PULS:COUN INF\n");
iprintf (cm, "PULS:PER 2 S\n");
/*--------------------Connect Equipment------------------------------------*/
printf ("\n\n1. Set Scope to 2 V/div, .02 msec/div");
printf ("\n2. Connect Mainframe Pacer Out to AFG Aux In");
printf ("\n3. Connect Scope to AFG Output");
printf ("\n\nPress ENTER when ready");
getchar ();
/*--------------------Perform Test-----------------------------------------*/
iprintf (id, "FREQ 1E4;\n");
iprintf (id, "OUTP:LOAD INF\n");
iprintf (id, "VOLT 4VPK\n");
iprintf (id, "ROSC:GATE:STAT ON\n");
iprintf (id, "INIT:IMM\n");
iprintf (cm, "INIT:IMM\n");
printf ("\n\nVerify that the signal displayed on the scope toggles between");
printf ("\na 10 kHz sinewave and a DC signal at 1 second intervals.");
printf ("\n\nPress ENTER to end test ");
getchar ();
iprintf (id, "*RST;*CLS\n");
iclose (id);
iclose (cm);
}
The purpose of this test is to check the Aux Out port. A pulse is sent to the
Aux Out port for each zero crossing of the 10 kHz sinewave.
/* Aux Out Functional Verification Test
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,10"
void main (void)
{
INST id;
char message[256] = {0};
int result;
/* Close instrument session */
E1340A */
/* Address of device */
/* Define id as an instrument */
/* Result variable */
Verification Tests - C Programs 87

Advertisement

Table of Contents
loading

Table of Contents