Subversion Repositories f9daq

Rev

Blame | Last modification | View Log | RSS feed

#include <cvidef.h>
#include <ivi.h>

#define GDELAY 0.1

typedef struct {
  int function,range,zero_check,zero_correct,suppress,trigger;
  int vsource_operate,read_mode,data_prefix,display,data_store;
  int srq,eoi;
  char terminator[2];
} K6517STATUS;
extern K6517STATUS K6517Stat;
   
void _VI_FUNC K6517_open (int interface, int port, int primary_addr,
                         int secondary_addr, int timeout);

void _VI_FUNC K6517_clear (void);

void _VI_FUNC K6517_send (char *cmd, int len);

int _VI_FUNC K6517_receive (char *response, int maxbyt);

void _VI_FUNC K6517_status (void);

void _VI_FUNC K6517_data_format (int mode);

double _VI_FUNC K6517_get (char *prefix, int *loc);

void _VI_FUNC K6517_current_mode (double range);

void _VI_FUNC K6517_zero_correct (int zcorrect);

void _VI_FUNC K6517_trigger_mode (int mode);

void _VI_FUNC K6517_reading_mode (int mode);

void _VI_FUNC K6517_vsource_set (float value);

double _VI_FUNC K6517_vsource_get (void);

void _VI_FUNC K6517_vsource_operate (int operate);

void _VI_FUNC K6517_close (void);