- From: John Oppenheimer <johnopp80_at_yahoo.com>
- Date: Tue, 3 Aug 2004 07:41:49 -0700 (PDT)
I am trying unsuccessfully to use a NI PCI-6533 as
a simple digital IO device. What does seem to
work:
- modprobe ni_pcidio
- comedi_config /dev/comedi0 ni_pcidio
- comedi_open()
- comedi_get_subdevice_type() returns
COMEDI_SUBD_DIO
- comedi_find_subdevice_by_type( , ,
COMEDI_SUBD_DIO) returns 0
- comedi_get_n_channels() returns 32
- comedi_dio_config() and comedi_dio_write()
return without error
The program is a simple:
comedi_open()
comedi_dio_config(, , 0, COMEDI_OUTPUT)
while(1) {
comedi_dio_write(, , 0, 0)
comedi_dio_write(, , 0, 1)
}
The output remains 0V, If I connect DPILL to +5
the output is +5.
I found a reference in the list suggesting that
COMEDI_OUTPUT and COMEDI_INPUT are swapped, I
tried COMEDI_INPUT.
There is a reference in the NI 6533 manual about
having two modes, "Standard Output" with both sink
and source and "Wired Or". I can not seem to find
how to make the change through comedi. What mode
is the 6533 in when using comedi?
Is there a control line that needs to be asserted
to get an output?
Do I need to add parameters to the comedi_config
call?
What else am I doing wrong????
John
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
Received on 2004-08-03Z13:41:49