Problem with NI 6259

Hi everybody.

I have a problem with a National instrument NI 6259 "m series".

First the configuration of my machine
kernel: 2.6.17 with ipipe patch
distro: debian sarge stable
comedi: current CVS version (0.7.73)

The driver is ni_pcimio and it is loaded correctly.
Actually it seems to work, but the board always reads the same
number (32768, that is 0.0001529 Volt).
Conversely the output does not work since the
comedi_data_write() method returns -1.

The cmd binary runs and displays a semi-intelligible header plus
a bunch of social science numbers (at least they seem so to me)

==START==
start:   now    0
scan_begin: timer   1000000
convert: timer   1000000
scan_end:   count   4
stop:   count   1000
first test returned 4 (argument conflict)
start:   now    0
scan_begin: timer   4000000
convert: timer   1000000
scan_end:   count   4
stop:   count   1000
first test returned 0 (success)
start time: 117307787.444526
end time: 117307791.449081

< i save you the bunch of social science numbers >

==END==


Another bad symptom is the fact that the binary comedi_test
hangs up after displaying the following

==START==

I: Comedi version: 0.7.73
I: Comedilib version: unknown =)
I: driver name: ni_pcimio
I: device name: pci-6259
I:
I: subdevice 0
I: testing info...
rev 1
I: subdevice type: 1 (analog input)
  number of channels: 32
  max data value: 65535
  ranges:
    all chans: [-10,10] [-5,5] [-2,2] [-1,1] [-0.5,0.5] [-0.2,0.2] 
[-0.1,0.1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_0...
comedi_do_insn returned 0, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 10 us
I: testing cmd_no_cmd...
not applicable
I: testing cmd_probe_src_mask...
rev 1
command source mask:
  start: now|ext|int
  scan_begin: timer|ext
  convert: timer|ext
  scan_end: count
  stop: none|count
I: testing cmd_probe_fast_1chan...
command fast 1chan:
  start: now 0
  scan_begin: timer 800
  convert: timer 800
  scan_end: count 1
  stop: count 2
I: testing cmd_read_fast_1chan...
I: testing cmd_write_fast_1chan...
not applicable
I: testing cmd_logic_bug...
rev 1
command_test returned 1, good
I: testing cmd_fifo_depth_check...
64, 1
128, 1
256, 1
512, 1
1024, 1
2048, 1
4096, 2
8192, 4
16384, 8
32768, 16
I: testing cmd_start_inttrig...
I: testing mmap...
0xb7dc2000 ok
0xb7dc3000 ok
0xb7dc4000 ok
0xb7dc5000 ok
0xb7dc6000 ok
compare ok
0xb7dc2000 segfaulted (ok)
0xb7dc3000 segfaulted (ok)
0xb7dc4000 segfaulted (ok)
0xb7dc5000 segfaulted (ok)
0xb7dc6000 segfaulted (ok)
I: testing read_select...
I: testing bufconfig...
buffer size 65536
max buffer size 65536
setting buffer size to 4096
buffer size set to 4096
buffer size now at 4096
setting buffer size past limit, 69632
got EPERM, good
setting buffer size to max, 65536
buffer size now at 65536
I:
I: subdevice 1
I: testing info...
rev 1
I: subdevice type: 2 (analog output)
  number of channels: 4
  max data value: 65535
  ranges:
    all chans: [-10,10] [-5,5] [-1,1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_0...
comedi_do_insn returned 0, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 1 us
I: testing cmd_no_cmd...
not applicable
I: testing cmd_probe_src_mask...
rev 1
command source mask:
  start: int
  scan_begin: timer
  convert: now
  scan_end: count
  stop: none|count
I: testing cmd_probe_fast_1chan...
command fast 1chan:
  start: int 0
  scan_begin: timer 0
  convert: now 0
  scan_end: count 1
  stop: count 2
I: testing cmd_read_fast_1chan...
not applicable
I: testing cmd_write_fast_1chan...

==END==


Does anybody know where the problem could be?

Thanks in advance
Donatello Materassi

Received on 2007-03-06Z17:33:07