Appendix A
Verification Tests - C Programs
Functional Verification Tests
These examples are designed to do the Functional Verification Tests found
in Chapter 2, "Verification Tests."
NOTE
These examples assume an AFG logical address setting of 70910. If your
AFG has a different address, see the HP E1340A User’s Manual to change
the logical address or change the program line #define ADDR "hpib7,9,10"
to match your address setting.
Functional
Verification:
Self-Test
The AFG self-test verifies communications between the AFG and the
HP E1300A/E1301A mainframe or the HP E1405/E1406 command module.
/* Self 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;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
/* Open instrument session */
/*--------------------------------Self Test---------------------------------*/
Appendix A
Verification Tests - C Programs 85
Содержание 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 ...