Re: Sensoray 626 driver: problem with commands

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.

-- 
Frank

Received on 2005-06-09Z23:58:32