Re: Wait for mux to settle for PCI-DAS 1002

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

On Tuesday 11 March 2003 05:47 am, Lorenzo Dozio wrote:
> Hi,
>
> I'm working on an industrial project using RTAI-Lab with Comedi support
> to manage analog I/O of a ComputerBoards PCI-DAS 1002. I noticed that
> the driver (cb_pcidas) misses a waiting time for multiplexer to settle.
> This lack involves wrong readings with multiple consecutive
> comedi_data_read calls on different AI channels. You can test the
> outcome simply by adding other comedi_data_read to the "inp" demo under
> Comedilib.
> The right behaviour is retrieved by adding a delay of 5 us after the
> writing to the ADC Channel MUX and Control Register.
>

It's not a bug.  Use comedi_data_read_hint() or comedi_data_read_delayed() to 
allow the mux to settle.

- -- 
Frank

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

iD8DBQE+biZe5vihyNWuA4URAjYvAJ9k+qZppaaaCuKM1HRT927ZqGNrpwCg5nBf
N+H5OegXEBgsviqBonBU/P0=
=v4Fd
-----END PGP SIGNATURE-----

Received on 2003-03-11Z18:09:34