- From: <nkataria_at_npcil.co.in>
- Date: Sat, 4 Nov 2006 11:00:21 +0530 (IST)
> On 03/11/06 16:33, Navneet Kataria wrote: >> Hello, >> >> I am using the comedi driver version 0.7.70 and comedi >> library version 0.7.22 for interacting with pci 1762 >> device. The digital output subdevice(1) is working >> perfectly but i am facing problem reading digital >> inputs. >> >> I have using voltage source of 12 V as input. The >> problem is the when i run >> $ inp -s0 -c0 -f/dev/comedi0 >> for reading the input value, it always shows it 1. I >> mean even if I disconnect the power supply. Similarly >> for other channels (some garbage 0/1 pattern >> irrespective of attached input source). >> I had testing the board successfully in windows OS >> where the results are perfect. >> >> I had used inp program(given in comedilib distribution) for reading >> digital >> as well as contact inputs for the device pci1733. So it seems >> that the library routine is fine. >> >> Can you guide me to solve this issue ? > > Digital inputs are usually 5V TTL level. Are you sure you haven't > damaged the inputs by connecting 12V? What does the input read if you > connect it to 0V? > I read from the PCI-1762 user manual that it accepts input ranging from 10V to 50V DC to support industrial applications with 12,24, and 48V DC input voltages. Also I had tested the device successfully in Windows OS using the driver provided by the supplier of the card. I noted that if the input voltage goes below 6-7V then the device treats it as a Low(0) signal. I also tried to connect 0 V but the random bit pattern does not change. > -- > -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- > -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- > > _______________________________________________ > comedi mailing list > comedi_at_comedi.org > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi > ----------- 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 2006-11-04Z05:30:21