RE: Comedi problems with pc104-das16jr/16

Hi Frank!

Thanks for your fast answer! Could you explain this a bit more detailed,
as I still did not really get, how the driver really works. I suppose
you mean the settings in the comedi_config. My current settings are:

comedi_config /dev/comedi0 pc104-das16jr/16 0x300,5,1,1

Trying to leave out the dma-access, I got a complaint that it is needed
for timer and externally controlled acquisition. - therefore I put it
back. The interrupt I needed as well. As you see, no timer mode
(option[8])selected.

What I do in the moment is sending a command structure (for aquirering
e.g. 100 samples) to the device and then try to read it out with read().
Repeating this again and again.
Is there another way to do an acquisition?

What I finally need is a sequence, where external-clock timed aquisition
and fixed sample rate aquisition are following each other, back and
forth. Both with a certain number of samples. Therefore I suppose I need
to constantly send a new command, read out the data, send the next
command, ...

Further I am wondering if I read out the data in the proper way. I just
use a ordinary read(it-fd,&data,size)...

I have to confess I did not thoroughly understand the drivers philosophy
yet.

Therefore I would be very thankful for any clarifications!

Jan

-----Ursprüngliche Nachricht-----
Von: GECOS [mailto:fmhess_at_mfire.com] Im Auftrag von Frank Mori Hess
Gesendet: Montag, 27. Januar 2003 18:30
An: Jan Klostermann; comedi_at_comedi.org
Betreff: Re: Comedi problems with pc104-das16jr/16


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

On Monday 27 January 2003 10:50 am, Jan Klostermann wrote:
>
> Running the driver with TIMER-triggered and a specified number of
> samples (COUNT=10) and then reading those, I get plenty of "spurious 
> interrupts" and every once in a while a "residues -> tranfer size" 
> error in the kernel messages (dmesg).
>

You seem to be using both the timer mode and an irq.  You need to
disable one 
or the other by setting it to zero.

- -- 
Frank

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

iD8DBQE+NWyO5vihyNWuA4URAiAhAKC2O4DhN1FQRk1FuKVgaxWPeHSoQgCfdktm
Ui0MgMNqbEqflBNB+wRlYmQ=
=rAxI
-----END PGP SIGNATURE-----

Received on 2003-01-28Z09:33:20