Re: Command to put interrupt handler at End-Of-Scan

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

On Thursday 23 January 2003 01:20 am, Herman Bruyninckx wrote:
> On Wed, 22 Jan 2003, Frank Mori Hess wrote:
> > On Wednesday 22 January 2003 04:50 am, Herman Bruyninckx wrote:
> > > I've been looking through the comedi code and documentation, but fail
> > > to find how I can use my interrupt handler to an interrupt that is to
> > > be generated after a scan has finished.
> > >
> > > So, I do find the command to register an interrupt handler, but I don't
> > > find which comedi function call allows me to specify that the card
> > > should fire an interrupt after a scan has completed. Or after a
> > > specificied number of scans have completed.
> >
> > I think you are wanting to register the callback function with
> > COMEDI_CB_EOS in the callback mask.  It doesn't work in the ni_pcimio
> > driver at the moment though, see
> >
> > https://cvs.comedi.org/cgi-bin/bugzilla/show_bug.cgi?id=16
>
> Thanks! But is it (will it be) possible to have continuous acquisition,
> while giving an interrupt at every, say, 6 scans?
>
> Herman


That would require supporting the INSN_CONFIG_BLOCK_SIZE configuration insn 
and making it adjust the size of the dma links the mite uses.  Then you would 
have your callback wait for COMEDI_CB_BLOCK events.  It looks like it would 
be fairly straightforward to make these changes to the current ni_pcimio 
driver, although exactly six scans might not be practical.  Powers of 2 bytes 
up to 4096 would work.

- -- 
Frank

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

iD8DBQE+Nun05vihyNWuA4URAogKAKDK1rWl4h1BxmYxLGuty0ZShFTXGwCgrtjv
fOsZeYr0pOaAs/EFhainwag=
=eivX
-----END PGP SIGNATURE-----

Received on 2003-01-28Z20:37:08