Re: streaming input with the PCI_DIO_32HS

On Fri, May 31, 2002 at 01:13:49PM -0400, brent ledvina wrote:
> Hi,
> 
> I'm working on making changes to the ni_pcidio driver for
> the PCI_DIO_32HS such that it will allow streaming input
> with DMA enabled using an external clock for timing.  The
> current driver is supposed to support streaming input with
> DMA  but with the internal clock only.
> 
> Although this is the stated case, I am unable to get
> streaming input to function at all. I'm using the select.c
> program in comedlib/demo/ as a sanity check. I set up the
> card to accept streaming input using comedi_command with the
> following inputs:
> 
> start:		now	0
> scan_begin:	timer	10000000
> convert:	now	0
> scan_end:	count	32
> stop:		count	25

If select() returns that a stream is readable, and read()
returns 0, that means that there is no command running.
I'm pretty sure that your command didn't pass comedi_command_test().

Use something like:

  start:      now   0
  scan_begin: timer 1000000
  convert:    now   0
  scan_end:   count 1
  stop:       count 100000
  chanlist_len = 1

Also, the chunk size is 4096 bytes on this board, so you'll
have to wait 20 seconds to see data in your case.  I think
that comedi_test worked correctly on this board the last
time I hacked on the driver.

Unfortunately, the machine that has my board did not boot
after a power outage this morning, and I'm not near it.

By the way, ni_pcidio_cmdtest() isn't very clean.  It
advertises stuff it doesn't support.



dave...

Received on 2002-05-31Z19:00:54