Functional
Verification: Aux In
Test
The purpose of this test is to check the Aux In port. The mainframe Pacer
port is used to gate the output.
iprintf (id, "*RST;*CLS\n");
iprintf (id, "*TST?\n");
iscanf (id, "%d", &result);
if (result != 0)
/* Self Test Failed */
{
printf ("\n\n*** Self Test Failed ***");
do
{
iprintf (id, "SYST:ERR?\n");
iscanf (id, "%256t", message);
printf ("\n %s", message);
}
while (message[1] != ’0’);
}
else
/* Self Test Passed */
printf ("\n\nSelf Test Passed");
/*--------------------------------------------------------------------------*/
iclose (id);
/* Close instrument session */
}
/* Aux In Functional Verification Test E1340A */
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,10"
/* Address of device */
#define COMM "hpib7,9,0"
/* Address of command module */
void main (void)
{
INST id, cm;
/* Define id and cm as an instrument */
char message[256] = {0};
/* Result variable */
int result;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
/* Open instrument session */
cm = iopen (COMM);
86 Verification Tests - C Programs
Appendix A
Содержание 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 ...