Re: Sensoray 626 driver: problem with commands

On Thu, 2005-06-09 at 20:58 -0400, Frank Mori Hess wrote:
> On Thursday 09 June 2005 07:30 am, Gianluca Palli wrote:
> > Hi,
> >
> > i'm writing a comedi driver for the Sensoray 626 daq board (based on the
> > sensoray GPL driver). It's incomplete yet (commands don't work, see
> > below) but i have tested this driver on different hardware and it seems
> > to work fine. To test the driver i have used various comedilib demo
> > programs, some self made codes and some generated by simulink/rtw for
> > RTAI platform.
> >
> > I have some question about how to implement data transfer during command
> > driven acquisition. I have looked in others drivers code, in particular
> > in usbdux.c and cb_pcidas.c... I have tried to use the
> > cfc_write_to_buffer or the comedi_buf_put function to pass the sample to
> > the async transfer buffer, but the result is always a failure. The value
> > returned by the read function is always -1 and the read doesn't wait
> > even if the command is running or not. The async transfer buffer must be
> > initalized in some way?
> 
> One thing that is easy to overlook is setting dev->read_subdev.
> 

I miss to set dev->read_subdev :) now all works fine!!!
I put the driver into bugzilla... 

Thanks for your help

Gianluca

-- 
Ing. Gianluca Palli, PhD

University of Bologna
DEIS -Department of Electronics, Computer Science and Systems
LAR - Laboratory of Automation and Robotics
Viale Risorgimento 2
40136 Bologna - Italy

tel: (+39) 051 20 93903
      (+39) 051 20 93068 (LAB)

ICQ: 149748789
mailto: gpalli_at_deis.unibo.it
http://www-lar.deis.unibo.it/people/gpalli/

Received on 2005-06-14Z07:12:39