Re: PCI 1762 Device Automatic Relay Energization on comedi_config

Hello All,

I don't know how to report bug. So I am mailing it on the mailing list.
The problem I was facing (below) was solved by (minor change) changing
the code in /comedi/drivers/adv_pci_dio.c file.

in the following line...

case TYPE_PCI1762:
  outw(0x0101, dev->iobase+PCI1750_ICR);  // disable & clear interrupts

replacing PCI1750_ICR with PCI1762_ICR.

Please take note of it.

thanks and regards,
Navneet Kataria

On Wed, 2007-03-14 at 11:48, Navneet Kataria wrote:
> Hello All,
> 
> I am using comedi driver and library for accessing/using pci1762 device.
> It is working very well. But the only problem is that when I initialize
> the device using comedi_config command, the device's 1st and 9th relay
> automatically goes to energize state.
> 
> $comedi_config /dev/comedi0 pci1762
> 
> But as soon as I set some relay using outp program(in demo directory of
> comedilib directory), both the relay goes to de-energies state
> automatically.
> 
> What should I do to disable the energization of both the relays while
> configuring the device using comedi_config. Or Can I use some other way
> to initialize the device ? 
> 
> thanks and regards,
> Navneet Kataria
> 
> -----------
> Disclaimer: 
> 
> This email and any files transmitted with it are intended solely for the use of the addressed individual or entity.  It contains information that is confidential and protected from disclosure. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action.
> 
> Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
> 
> If you have received this message in error, you should destroy this message and may please notify the sender by e-mail.  
> Thank you.
> -----------
> 
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
-- 
thanks and regards,

Navneet Kataria
Executive Engineer, R&D-ES,
G-Basement, Hall No.3, NUB,
NPCIL, DAE.
Phone  :: 022 25993965(O)
Mobile :: 09819014601 

-----------
Disclaimer: 

This email and any files transmitted with it are intended solely for the use of the addressed individual or entity.  It contains information that is confidential and protected from disclosure. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action.

Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

If you have received this message in error, you should destroy this message and may please notify the sender by e-mail.  
Thank you.
-----------

Received on 2007-03-16Z09:36:38