Re: Digital Input reading problem for PCI-1762

One more observation...i think this might be useful...
When i run info program on the device, it gives me the following output....
--------------------------------
overall info:
  version code: 0x000746
  driver name: adv_pci_dio
  board name: pci1762
  number of subdevices: 3
subdevice 0:
  type: 3 (digital input)
  number of channels: 16
  max data value: 1
  ranges:
    all chans: [0,5]
  command:
    not supported
subdevice 1:
  type: 4 (digital output)
  number of channels: 16
  max data value: 1
  ranges:
    all chans: [0,5]
  command:
    not supported
subdevice 2:
  type: 3 (digital input)
  number of channels: 4
  max data value: 1
  ranges:
    all chans: [0,5]
  command:
    not supported
--------------------------------

My query is when the card manual says that the digital input range is 10
to 50 V -DC. Then why the info software says that for subdevice 0 -
digital input the range is 0-5V ?
Is this hard-coded info by card type or is retried from the card at
run-time ?

> 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?
>
> --
> -=( 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:45:23