Digital Input reading problem for PCI-1762

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 ?



-- 
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.
-----------

Received on 2006-11-03Z16:33:04