#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>


#define nspline         100
#define nchannels       80
#define stringl  80
extern int iberr;
extern long julday ();
double readchannel ();
void initgpib ();
void initchannels ();
void inittime ();
float getdt ();

typedef struct channelrecord
{
  char ident[stringl], measuretype[stringl];
  double xspline[nspline], yspline[nspline], y2spline[nspline];
  int ndata;
}
channelrecord;

int scanner, voltmeter, bd;
channelrecord channeldata[nchannels+1];

void  setcur ();
float
getcurrent ();
float
getvolt ();
