- From: Russell Poyner <rpoyner_at_wisc.edu>
- Date: Wed, 05 Apr 2006 13:53:51 -0500
I am updating a program I wrote 6 years ago that gathers data through a
Keithley-Metrabyte Das-16 card. Things work ok using single acquistion
functions. When I attempt to use comedi_sv_measure i get segfault.
comedi_sv_init works and seems to set sane values in the comedi_sv_t
structure. Is this a hardware limitation, or am I missing something?
code:
double *sv_data;
comedi_sv_t *sv;
if(comedi_sv_init(sv,it,AD_SUBDEV,ai_chan) < 0){
fprintf(stderr,"Error in comedi_sv_init");
comedi_perror("/dev/comedi0");
}
ret=comedi_sv_measure(sv,sv_data);
fprintf(stderr,"measured %d points\n",ret);
Received on 2006-04-05Z17:53:51