lab-pc+ only 2 subdevice

Hi
I have installed comedi and comedilib after recompiling kernel 2.4.20 on 
the mandrake 9.0 and
all seems go well :I have tried to create some program that read analog 
voltage and this go well but using ./info in the /comedilib/demo I have 
seen that my card has only  2 subdevice
up
[root_at_27-119-dhcp demo]# ./info /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)

 while under microsoft I use also the digital port and counter and 
analog output .I don't know why ?Perhaps when I do comedi_config 
/dev/comedi0 ni_labpc 0x280,7,3 I must add some other options or I must 
put more address i.e comedi_config /dev/comedi0 ni_labpc 
0x280,0x290,0x300 ,7,3 .So if I try to use comedi_data_write or 
comedi_dio_read or comedi_dio_write I receive -1 that means error.
Thank you

Received on 2004-01-29Z14:56:12