Model 3988 Op Manual.vp - Krohn-Hite Corporation
Model 3988 Op Manual.vp - Krohn-Hite Corporation
Model 3988 Op Manual.vp - Krohn-Hite Corporation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Section 3 - IEEE-488 STD (GPIB) Programming<br />
#include <br />
/* DECL.H contains constants, declarations, and function prototypes. */<br />
#include “decl.h”<br />
#define DEVNUM “dev1" /* Set instrument to GPIB address 1 */<br />
/* GPIBERR is an error function that is called when a NI-488 function fails. */<br />
void gpiberr(char *msg);<br />
char rd[255]; /* read data buffer */<br />
int GpibDev,GpibBoard; /* device handles */<br />
void main() {<br />
printf(“\nSending data to the <strong>Krohn</strong>-<strong>Hite</strong> model <strong>3988</strong>...\n”);<br />
printf(“\n”);<br />
/*<br />
* Assign a unique identifier (a ‘handle’) to the K-H <strong>3988</strong> and store it in the<br />
* variable GpibDev. If GpibDev is less than zero, call GPIBERR with an error<br />
* message.<br />
*/<br />
GpibDev = ibfind (DEVNUM);<br />
if (GpibDev