- From: Jose Manuel Cano Garcia <jcgarcia_at_uma.es>
- Date: Fri, 30 Jan 2004 09:42:31 +0100
Hi,
Here are the dump from the "info" tool for both, the pcl812pg and the lab-pc+
cards. With respect to the labpc+, 2,3 and 4 subdevices are not recognized,
but I think that it is because I have not loaded the 8255 module for generic
digital input and output support. However I think that acquisition should
work because subdevice 0 is suposed to support it.
================= pc812pg ======================
[08:46 root_at_pc107te demo]$ ./info -f /dev/comedi0
overall info:
version code: 0x010000
driver name: pcl812
board name: pcl812pg
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.3125,0.3125]
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 33000
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
====================== ni lap-pc+ =================================
[08:46 root_at_pc107te demo]$ ./info -f /dev/comedi1
overall info:
version code: 0x010000
driver name: ni_labpc
board name: lab-pc+
number of subdevices: 5
subdevice 0:
type: 1 (analog input)
number of channels: 8
max data value: 4095
ranges:
all chans: [-5,5] [-4,4] [-2.5,2.5] [-1,1] [-0.5,0.5] [-0.25,0.25]
[-0.1,0.1] [-0.05,0.05] [0,10] [0,8]
[0,5] [0,2] [0,1] [0,0.5] [0,0.2] [0,0.1]
command:
start: now|ext
scan_begin: follow|timer|ext
convert: timer|ext
scan_end: count
stop: none|count
command fast 1chan:
start: now 0
scan_begin: follow 0
convert: timer 12000
scan_end: count 1
stop: count 2
subdevice 1:
type: 2 (analog output)
number of channels: 2
max data value: 4095
ranges:
all chans: [-5,5] [0,10]
command:
not supported
subdevice 2:
type: 0 (unused)
subdevice 3:
type: 0 (unused)
subdevice 4:
type: 0 (unused)
On Friday 30 January 2004 08:26, you wrote:
> Jose Manuel Cano Garcia wrote:
> >Hi,
> >
> > I am a newbie in comedi. I am testing it to acquire data using two old
> > ISA DAQ cards, the NI lap-pc+ and Advantech pcl812pg. The example
> > programs inp and inpn work properly, but I cannot get the cmd program
> > working. It blocks when reading data from /dev/comedi (no data are
> > readed). I have checked the DMA and IRQ parameters of the
> >cards, and everithing seems to be properly configured and no conflicts are
> >present on the system (I enclose /sys/interrupts, /sys/dma /sys/comedi
> >and /sys/ioports at the end of this mail). My configuration is (though I
> > have tried some variations, which did not work):
> >
> >pcl812pg:
> > Address=0x220 IRQ=6 DMA=3
> >lab-pc+:
> > Address=0x2C= IRQ=9 DMA=1
> >
> >My linux system is Debian-3.0 with a 2.4.22 kernel (I have also tested
> > kernel 2.4.20), running on a Pentium III 550 MHz PC. I have not installed
> > the realtime patches RTAI nor RTLinux. The comedi version is 0.7.67 and
> > the comedilib version is 0.7.21
> >
> >I would like to sample waveforms using these card, and my intention was to
> >take the cmd program as an example to do this. I am not sure if it is a
> >problem of the drivers, the configuration, the library, the cmd.c example
> > or the specified parameters. I would appreciate any hint.
> >
> >Thank you in advance and best regards,
> >
> > Jose Manuel Cano Garcia
> >
> >=================== /proc/interrupts =====================
> > CPU0
> > 0: 365318 XT-PIC timer
> > 1: 10372 XT-PIC keyboard
> > 2: 0 XT-PIC cascade
> > 5: 0 XT-PIC usb-uhci
> > 6: 2 XT-PIC pcl812
> > 8: 4 XT-PIC rtc
> > 9: 0 XT-PIC ni_labpc
> > 10: 3057 XT-PIC eth0
> > 12: 28 XT-PIC PS/2 Mouse
> > 14: 57252 XT-PIC ide0
> >NMI: 0
> >ERR: 0
> >
> >================== /proc/dma ====================
> > 1: ni_labpc
> > 3: pcl812
> > 4: cascade
> >
> >======= /proc/ioports ===================
> >0000-001f : dma1
> >0020-003f : pic1
> >0040-005f : timer
> >0060-006f : keyboard
> >0070-007f : rtc
> >0080-008f : dma page reg
> >00a0-00bf : pic2
> >00c0-00df : dma2
> >00f0-00ff : fpu
> >01f0-01f7 : ide0
> >0220-022f : pcl812
> >02c0-02df : ni_labpc
> >02f8-02ff : serial(auto)
> >03c0-03df : vga+
> >03f6-03f6 : ide0
> >03f8-03ff : serial(auto)
> >0cf8-0cff : PCI conf1
> >d000-d07f : 3Com Corporation 3c905C-TX/TX-M [Tornado]
> > d000-d07f : 00:0a.0
> >d400-d41f : Intel Corp. 82371AB/EB/MB PIIX4 USB
> > d400-d41f : usb-uhci
> >d800-d80f : Intel Corp. 82371AB/EB/MB PIIX4 IDE
> >e400-e43f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
> >e800-e81f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
> >
> >=============== /proc/comedi ===============
> >
> >comedi version 1.0.0
> >format string: "%2d: %-20s %-20s
> > %4d",i,driver_name,board_name,n_subdevices 0: pcl812
> > pcl812pg 4
> > 1: ni_labpc lab-pc+ 5
> >ni_labpc:
> > lab-pc-1200
> > lab-pc-1200ai
> > lab-pc+
> > pci-1200
> >pcl812:
> > pcl812
> > pcl812pg
> > acl8112pg
> > acl8112dg
> > acl8112hg
> > a821pgl
> > a821pglnda
> > a821pgh
> > a822pgl
> > a822pgh
> > a823pgl
> > a823pgh
> > pcl813
> > pcl813b
> > acl8113
> > iso813
> > acl8216
> > a826pg
>
> I have the lab-pc + and it's just a few time that I have discover and
> installed comedi but seeing your email I tried to recompile cmd.c in the
> comedilib/demo and It functs and run but
> I don't have again studied the command structure to tell you if the
> example cmd.c go well only on the common.c parameters and seeing rapidly
> the source of cmd.c it wants only do an analog acquisition .
> I wish to understand your problem if no rewrite me.
> But waht do you have when do you do ./info /dev/comediN on the lab-pc+ ?
> How much subdevices and all define or some unused ?
> I ask you this bacause I have seen on my lab-pc+ that ./info
> /dev/comedi0 produce
> [root_at_27-119-dhcp demo]# ./info /dev/comedi0
> overall info:
> version code: 0x010000
> driver name: ni_labpc
> board name: lab-pc+
> number of subdevices: 5
> subdevice 0:
> type: 1 (analog input)
> number of channels: 8
> max data value: 4095
> ranges:
> all chans: [-5,5] [-4,4] [-2.5,2.5] [-1,1] [-0.5,0.5] [-0.25,0.25]
> [-0.1,0.1] [-0.05,0.05] [0,10] [0,8] [0,5] [0,2] [0,1] [0,0.5] [0,0.2]
> [0,0.1]
> command:
> start: now|ext
> scan_begin: follow|timer|ext
> convert: timer|ext
> scan_end: count
> stop: none|count
> command fast 1chan:
> start: now 0
> scan_begin: follow 0
> convert: timer 12000
> scan_end: count 1
> stop: count 2
> subdevice 1:
> type: 2 (analog output)
> number of channels: 2
> max data value: 4095
> ranges:
> all chans: [-5,5] [0,10]
> command:
> not supported
> subdevice 2:
> type: 0 (unused)
> subdevice 3:
> type: 0 (unused)
> subdevice 4:
> type: 0 (unused)
> and so the analog output and digital and counter subdevice are not
> recognize and don't go but go well only the analog input.I don't know if
> this is a problem of the comedi driver or something which don't go on my
> pc (in microsoft wondows on my ni-daq test all component[analog
> input,output and digital and counter go well] go well).
--
=========================================================
José Manuel Cano García. mailto:cano_at_dte.uma.es
Departamento de Tecnología Electrónica. http://www.dte.uma.es
Universidad de Málaga. http://www.uma.es
ETSI Telecomunicación. Campus de Teatinos.
29071.
Málaga, Spain.
Tl: +34 952 13 7176 Fax: +34 952 13 1447
=========================================================
Received on 2004-01-30Z08:42:31