- From: Mats Luspa <mats.luspa_at_irf.se>
- Date: Sun, 27 Oct 2002 10:03:54 +0100
Hello! Thank you. Now it works. I should have read the Installation and configuration section of the documenation more carefully. /Regards Mats Quoting Michal Dobes <dobes_at_tesnet.cz>: > Hi, > > Mats Luspa wrote: > > I have an ACL-8112DG card and uses the driver pcl812. In the > documentation > > you can read that this driver supports insn and cmd interfaces. But it > > doesn't seem to be so for this card I have. The info-command gives this > > information: > > > > overall info: > version code: 0x000741 > driver name: pcl812 > board name: pcl812 > number of subdevices: 4 > subdevice 0: > type: 1 (analog input) > number of channels: 16 > max data value: 4095 > ranges: > all chans: [-10,10] > command: > not supported > .... [cut]... > > > > > So I don't understand why the documentation tells something different. > > Can someone explain why? > > [root_at_devel analogy]# modprobe pcl812 > [root_at_devel analogy]# /usr/sbin/comedi_config /dev/comedi3 acl8112dg > 0x300,7,1,0,0,0 > [root_at_devel analogy]# tail -1 /var/log/messages > Oct 26 20:00:42 devel kernel: comedi3: pcl812: board=acl8112dg, > ioport=0x300, irq=7, dma=1 > [root_at_devel analogy]# /usr/src/comedilib/demo/info -f/dev/comedi3 > overall info: > version code: 0x00073f > driver name: pcl812 > board name: acl8112dg > number of subdevices: 4 > subdevice 0: > type: 1 (analog input) > number of channels: 16 > max data value: 4095 > ranges: > all chans: [-5,5] [-2.5,2.5] [-1.25,1.25] [-0.625,0.625] [0,10] > [0,5] [0,2.5] [0,1.25] [-10,10] > command: > start: now > scan_begin: follow > convert: timer > scan_end: count > stop: none|count > command fast 1chan: > start: now 0 > scan_begin: follow 0 > convert: timer 10000 > scan_end: count 1 > stop: count 2 > subdevice 1: > type: 2 (analog output) > number of channels: 2 > max data value: 4095 > ranges: > all chans: [0,5] > command: > not supported > subdevice 2: > type: 3 (digital input) > number of channels: 16 > max data value: 1 > ranges: > all chans: [0,5] > command: > not supported > subdevice 3: > type: 4 (digital output) > number of channels: 16 > max data value: 1 > ranges: > all chans: [0,5] > command: > not supported > [root_at_devel analogy]# > > So I see something different. :-) > Firstly, specify to comedi_config your board becouse original > PCL-812 card cann't change ranges from software and don't support > differencial inputs. The command interface is supported only for > analog inputs, other support only insn. > Correctly select IRQ number, if you select IRQ which uses any other > driver then command interface will be disabled (check /proc/interrupts). > > Majkl > > -- > Bc. Michal Dobes > > TES s.r.o. (Testing of Energy Systems) > Prazska 597, Trebic 674 01, Czech Republic > Tel: +420-568 838 425 Fax: +420-568 838 427 > mailto:dobes_at_tesnet.cz > -- Mats Luspa Phone: +46 (0)980 79 022 Institutet foer Rymdfysik Fax: +46 (0)980 79 050 Swedish Institute of Space Physics email: mats.luspa_at_irf.se Box 812 SE-981 28 Kiruna, Sweden
Received on 2002-10-27Z09:03:54