Re: Comedi on RT Linux

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

On Tuesday 21 January 2003 08:33 am, gtg680c_at_mail.gatech.edu wrote:
> Dear All,
>
> I am new to the comedi.  I have a 64 analog input Computing Measurement
> Card. PCI-DAS6402/16.  I can get the analog input on a single channel by
> using "comedi_data_read".  But when I using the following to get two or
> more channels, the data are obviously wrong:
>
> "
> ..
> chan=0;
> comedi_data_read(device, 0, chan, 0, aref, data1);
> chan=1;
> comedi_data_read(device, 0, chan, 0, aref, data2);
> chan=2;
> comedi_data_read(device, 0, chan, 0, aref, data3);
> ..
> "
>
> Can anybody tell me what's wrong with this?  Is there anybody can give me
> some sample code or advices on this card?  I have got blocked by this card
> for a long time.  Thank you very much!
>
> Best regards
>
> Haihong Zhu
>

Haihong,

You need to let the input settle after changing channels.  
comedi_data_read_hint() or comedi_data_read_delayed() might be useful.

- -- 
Frank

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

iD8DBQE+Ldpi5vihyNWuA4URAsd6AJ4qxkCixq8uo2wlwofXAzkOesZBCQCgm0TY
UJIH04XS3WPa316DvQNmRvU=
=ENjy
-----END PGP SIGNATURE-----

Received on 2003-01-21Z23:40:18