Functional
Verification:
Aux Out Test
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.
/*--------------------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);
/* Close instrument session */
iclose (cm);
}
/* Aux Out Functional Verification Test E1340A */
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,10"
/* Address of device */
void main (void)
{
INST id;
/* Define id as an instrument */
char message[256] = {0};
/* Result variable */
int result;
Appendix A
Verification Tests - C Programs 87
Содержание E1340A
Страница 6: ...Notes 6 HP E1340A Arbitrary Function Generator Service Manual ...
Страница 8: ......
Страница 10: ...Notes 12 What s in this Manual HP E1340A Service Manual ...
Страница 18: ...Notes 20 General Information Chapter 1 ...
Страница 74: ...Notes 76 Adjustments Chapter 3 ...
Страница 78: ...Notes 80 Replaceable Parts Chapter 4 ...
Страница 104: ...Notes 106 Verification Tests C Programs Appendix A ...