Comedi only allocates a 64KiB buffer by default, which is only enough
for 32768 16-bit samples. There is a maximum read buffer size, a
maximum write buffer size, a current read buffer size and a current
write buffer size, but these are all 64 KiB by default.
There are various ways to increase these sizes.
An application can use the comedilib function comedi_set_buffer_size()
to set the current buffer size for a subdevice, but it cannot be set
larger than the maximum buffer size.
A superuser can change the maximum and current read or write buffer size
for a device using the 'comedi_config' command, e.g.:
comedi_config /dev/comedi0 --read-buffer-size 10240
would set both the maximum and current read buffer sizes for
/dev/comedi0 to 10240 KiB (or 10 MiB).
Alternatively, there are a some sysfs attribute files that can be
written to to set the maximum read or write buffer size in KiB. For
example:
echo 10240 > /sys/class/comedi/comedi0/max_read_buffer_kb
sets the maximum read buffer size for /dev/comedi0 to 10240 KiB (or 10 MiB)
echo 10240 > /sys/class/comedi/comedi0/read_buffer_kb
sets the current read buffer size in the same way.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <
abb...@mev.co.uk> )=-
-=( Tel:
+44 (0)161 477 1898 FAX:
+44 (0)161 718 3587 )=-