B-2 PRODIGIT
#define CTS 0x10
/* clear to send */
#define DSR 0x20
/* data set ready */
#define RI 0x40
/* ring indicator */
#define DCD 0x80 /* data carrier detect */
#define DCTS 1
/* delta clear to send */
#define DDSR 2 /* delta data set ready */
#define TERI 4
/* trailing edge ring detect */
#define DDCD 8 /* delta data carrier detect */
#define OE 2
/* overrun error */
#define PE 4
/* parity error */
#define FE 8
/* frame error */
#define BI 0x10
/* break interrupt */
#define THRE 0x20 /* transmit holding reg. empty */
/* 3302C series elec. load command sets */
int pd_wrt(char *wrtbuf,int count)
{
static char *combuf[COMPTR] = {"CHAN", "CURR:HIGH", "CURR:LOW",
"RES:HIGH", "RES:LOW", "VOLT:HIGH",
"VOLT:LOW", "PERD:HIGH", "PERD:LOW",
"FALL", "RISE", "GLOB:LOAD",
"GLOB:LEV", "GLOB:PRES", "GLOB:SHOR",
"GLOB:DYN", "GLOB:RANG", "GLOB:MODE",
"CLER", "CHAN?", "MEAS:VOLT?",
"MEAS:CURR?","CURR:HIGH?", "CURR:LOW?",
"ERR?", "RES:HIGH?", "RES:LOW?",
"VOLT:HIGH?","VOLT:LOW?", "NAME?",
"PERD:HIGH?","PERD:LOW?", "FALL?",
"RISE?", "LOAD?", "LEV?",
"PRES?", "SHOR?", "DYN?",
"RANG?", "MODE?", "PROT?",
"REMOTE", "LOCAL" };
int cnt,result,t;
int comerr,err;
char ch;
char tempbuf[QUELEN];
char intbuf[QUELEN];
/* for (cnt = 0;cnt < 1024;cnt++)
{
intbuf[cnt] = '';
tempbuf[cnt]='';