cmd does not work

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

-- 
=========================================================
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-29Z21:02:54