Agilent Technologies 86100-90086 Sprinkler User Manual


 
2-16
Sample Programs
Listings of the Sample Programs
#ifdef AGILENT
#include <sicl.h>
#else
#ifdef WIN95
#include <windows.h> /* include file for Windows 95 */
#include <decl-32.h>
#else
#include <windecl.h> /* include file for Windows 3.1 */
#endif
#endif
#define CME 32
#define EXE 16
#define DDE 8
#define QYE 4
#define SRQ_BIT 64
#define MAX_LRNSTR 14000
#define MAX_LENGTH 4096
#define MAX_INT 4192
#ifdef AGILENT
#define DEVICE_ADDR "hpib7,7"
#define INTERFACE "hpib7"
#else
#define INTERFACE "hpib0"
#define board_index 0
#define prim_addr 7
#define second_addr 0
#define timeout 13
#define eoi_mode 1
#define eos_mode 0
#endif
#define TRUE 1
#define FALSE 0
/* GLOBALS */
#ifdef AGILENT
INST bus;
INST scope;
#else
int bus;
int scope;
#endif
/* GPIB prototypes */
void init_IO ( );
void write_IO ( void* );
void write_lrnstr ( void*, long );
int read_IO ( void*, unsigned long );
int check_SRQ ( );