2 * Demo of the comedi_sv_*() functions
6 * Copyright (c) 1999,2000 David A. Schleef <ds@schleef.org>
8 * This file may be freely modified, distributed, and combined with
9 * other software, as long as proper attribution is given in the
14 #include <comedilib.h>
26 int main(int argc, char *argv[])
32 parse_options(argc,argv);
34 device=comedi_open(filename);
36 comedi_perror(filename);
41 printf("measuring device=%s subdevice=%d channel=%d range=%d analog reference=%d\n",
42 filename,subdevice,channel,range,aref);
45 comedi_sv_init(&sv,device,subdevice,channel);
51 ret=comedi_sv_measure(&sv,&volts);
53 comedi_perror("comedi_sv_measure()");