Re: pci-das6031 board

Hello Frank!

I've tried the patch and the behaviour is now different.
Now for every range/gain it reads 32000, more or less, when the input voltages
changes from -10V to +10V.
The problem seems to be in configurations bits.

Where can I find information for configuring the bits of this card (PCI-DAS6031)?

Thanks for the tip.

Citando Frank Mori Hess <fmhess_at_users.sourceforge.net>:

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 Nzoji,
 
 Would you try the following patch and see if it helps?
 
 - --- comedi/drivers/cb_pcidas64.c        30 Oct 2003 23:00:26 -0000     
 1.113
 +++ comedi/drivers/cb_pcidas64.c        18 Apr 2004 17:07:30 -0000
 _at__at_ -1485,7 +1485,7 _at__at_
         comedi_spin_lock_irqsave( &dev->spinlock, flags );
 
         // bit should be set for 6025, although docs say boards with <= 16
 chans should be cleared XXX
 - -       if( 1 )
 +       if(board(dev)->ai_se_chans <= 16)
                 priv(dev)->adc_control1_bits |= ADC_QUEUE_CONFIG_BIT;
         writew( priv(dev)->adc_control1_bits, priv(dev)->main_iobase +
 ADC_CONTROL1_REG );
 
 
 On Wednesday 14 April 2004 12:22 pm, nzoji_at_portugalmail.pt wrote:
 > Hello,
 >
 > I have a PCI-DAS6031 board from Measurement Computing and I'm working
 > with the comedi driver module cb_pcidas64.
 >
 > The problem is that I only can read input voltages between -0.1 and
 > 0.1V. Below this range I read 0 and above this range I read 65535 for
 > any range (0 to 13) I choose.
 >
 > Has anyone worked successfully with this board and comedi drivers?
 >
 > Thanks in advance.
 >
 >
 > Nzoji Hipolito
 > Electronics Eng. / PhD Student
 > Universidade do Minho - Portugal
 > __________________________________________________________
 > Continua a preferir gastar mais? Adira à ligação Portugalmail.
 > http://acesso.portugalmail.pt/compare
 >
 > _______________________________________________
 > comedi mailing list
 > comedi_at_comedi.org
 > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
 
 - --
 Frank
 
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQFAgra55vihyNWuA4URAgM6AJ98Z3hPIYoh2Z1iwksYNhqHXYU5lACfYtHO
 whzj1VuCQ56+jFwfr6a8y/c=
 =a+nk
 -----END PGP SIGNATURE-----
 
 _______________________________________________
 comedi mailing list
 comedi_at_comedi.org
 https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
 



__________________________________________________________
O email preferido dos portugueses agora com 
100Mb de espaço e acesso gratuito à Internet
http://www.portugalmail.com/gold/

Received on 2004-04-19Z09:44:44