Need help with cmd.c

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've got a problem with the cmd program running on my PC104-DAS16/JR16. I 
can`t increase the freq and the number of scans as much as I want to, e.g. a 
1 million scans at 100KHZ). Cmd stops with an i/o error and a buffer overlow 
is reported when I do dmesg. 
Frank already told me that the buffer could fill up because I don`t mark any 
data as read, so I read about the comedi_mark_buffer_read command in the 
comedilib reference. I also should set the buffersize with 
comedi_set_buffer_size. Unfortunately my programming skills are poor, so I 
don`t know how exactly I can modify cmd.c so that the buffer doesn`t fill up 
easily. Maybe someone of you already encountered the same problems and has a 
solution to it. I`d appreciate any help.
BTW, Frank, I use the `timer mode` option already, but it didn`t solve the 
problem. I use

comedi_config /dev/comedi0 pc104-das16/jr16 0x220,,3,10,,,,,100 
- --read-buffersize 4096

I`m not sure about the 100, is it freq/1000 ?

Thanks for your help in advance,

Daniel
- -- 
- ----------------------------------------------------------------------
"Schlage die Trommel und fürchte dich nicht" (Heinrich Heine)

Daniel Koch (danielkoch_at_gmx.net)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE90Xbb6i7okj1aOg0RAoj/AKC6FAOOUOJTeD54ITRTUpT91LfowwCggT9u
1eJnj6clWiLFGjhBQvZicks=
=aYIC
-----END PGP SIGNATURE-----

Received on 2002-11-12Z21:46:59