Re: mmap vs cmd

Hi,

> [..] The reason for
> wanting to use mmap is that I thought it would be faster, and
> thus to be able to sample at full 200ks (with cmd, I get
> "read: Input/output error" once I crank up frequency and number
> of samples). [..]

Possible workaround: to use cmd, you may wish to increase the size of the read 
buffer. I use the following line in my /etc/rc.local file:

/usr/sbin/comedi_config /dev/comedi0 ni_pcimio --read-buffer 4096

This may (or may not) solve the problem you're having with cmd.
--Tim Holy

Received on 2002-09-03Z14:56:07