- From: Matt Koch <mattkoch_at_alum.mit.edu>
- Date: Tue, 2 Jul 2002 09:59:50 -0400 (EDT)
Folks:
I have been trying to get the AO_Waveform demo to work on my
AT-MIO-16XE-10 card. It spits out the following error message
write: input/output error
and then simply keeps chugging along, but nothing ever happens on the
output channel. Also, why does write() return twice the buffer size?
Moreover, why is there no command_set_buffer_size()? How does the buffer
get configured?
I am not certain at this point whether the problem is hardware or
software. I ran comedi_test and below is the output. The section dealing
with subdevice 1 (AO) does have three error messages (E), but I am too
novice to figure out whether those come from hardware or from software.
Any and all advice would be much appreciated. (By the way, the Cmd demo
for an AI waveform seems to be working OK).
Regards,
Matt Koch
I: Comedi version: 0.7.65
I: Comedilib version: unknown =)
I: driver name: ni_atmio
I: device name: at-mio-16xe-10
I:
I: subdevice 0
I: testing info...
rev 1
I: subdevice type: 1 (analog input)
number of channels: 16
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] [0,10] [0,5] [0,2] [0,1] [0,0.5] [0,0.2] [0,0.1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 18 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 10000
convert: timer 10000
scan_end: count 1
stop: count 2
I: testing cmd_read_fast_1chan...
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, 2
1024, 4
2048, 8
4096, 16
8192, 32
16384, 64
32768, 128
I: testing cmd_start_inttrig...
I: testing mmap...
0x40018000 ok
0x40019000 ok
0x4001a000 ok
0x4001b000 ok
0x4001c000 ok
compare ok
0x40018000 segfaulted (ok)
0x40019000 segfaulted (ok)
0x4001a000 segfaulted (ok)
0x4001b000 segfaulted (ok)
0x4001c000 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: 2
max data value: 65535
ranges:
all chans: [-10,10] [0,10] [-1,1] [0,1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 2 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
I: testing cmd_probe_fast_1chan...
command fast 1chan:
start: int 0
scan_begin: timer 0
convert: now 0
scan_end: count 1
stop: none 0
I: testing cmd_read_fast_1chan...
I: testing cmd_logic_bug...
rev 1
E: command_test returned 0, expected 1, (allowed src==0)
I: testing cmd_fifo_depth_check...
64, 0
128, 0
256, 0
512, 0
1024, 0
2048, 0
4096, 0
8192, 0
16384, 0
32768, 0
I: testing cmd_start_inttrig...
E: comedi_command() returned -1, expecting 0
E: comedi_internal_trigger(): Resource temporarily unavailable
I: testing mmap...
0x40018000 ok
0x40019000 ok
0x4001a000 ok
0x4001b000 ok
0x4001c000 ok
compare ok
0x40018000 segfaulted (ok)
0x40019000 segfaulted (ok)
0x4001a000 segfaulted (ok)
0x4001b000 segfaulted (ok)
0x4001c000 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 2
I: testing info...
rev 1
I: subdevice type: 5 (digital I/O)
number of channels: 8
max data value: 1
ranges:
all chans: [0,5]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 3 us
I: testing cmd_no_cmd...
got EIO, good
I: testing cmd_probe_src_mask...
not applicable
I: testing cmd_probe_fast_1chan...
not applicable
I: testing cmd_read_fast_1chan...
not applicable
I: testing cmd_logic_bug...
not applicable
I: testing cmd_fifo_depth_check...
not applicable
I: testing cmd_start_inttrig...
not applicable
I: testing mmap...
not applicable
I: testing read_select...
not applicable
I: testing bufconfig...
buffer length is 0, good
I:
I: subdevice 3
I: testing info...
rev 1
I: subdevice type: 0 (unused)
I: testing insn_read...
rev 1
comedi_do_insn: EIO, good
I: testing insn_read_time...
rev 1
not applicable
I: testing cmd_no_cmd...
got EIO, good
I: testing cmd_probe_src_mask...
not applicable
I: testing cmd_probe_fast_1chan...
not applicable
I: testing cmd_read_fast_1chan...
not applicable
I: testing cmd_logic_bug...
not applicable
I: testing cmd_fifo_depth_check...
not applicable
I: testing cmd_start_inttrig...
not applicable
I: testing mmap...
not applicable
I: testing read_select...
not applicable
I: testing bufconfig...
buffer length is 0, good
I:
I: subdevice 4
I: testing info...
rev 1
I: subdevice type: 6 (counter)
number of channels: 2
max data value: 1
ranges:
all chans: [0,1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 12 us
I: testing cmd_no_cmd...
got EIO, good
I: testing cmd_probe_src_mask...
not applicable
I: testing cmd_probe_fast_1chan...
not applicable
I: testing cmd_read_fast_1chan...
not applicable
I: testing cmd_logic_bug...
not applicable
I: testing cmd_fifo_depth_check...
not applicable
I: testing cmd_start_inttrig...
not applicable
I: testing mmap...
not applicable
I: testing read_select...
not applicable
I: testing bufconfig...
buffer length is 0, good
I:
I: subdevice 5
I: testing info...
rev 1
I: subdevice type: 9 (calibration)
number of channels: 11
max data value: (channel specific)
chan0: 255
chan1: 255
chan2: 255
chan3: 255
chan4: 255
chan5: 255
chan6: 255
chan7: 255
chan8: 4095
chan9: 4095
chan10: 4095
ranges:
all chans: [0,1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 2 us
I: testing cmd_no_cmd...
got EIO, good
I: testing cmd_probe_src_mask...
not applicable
I: testing cmd_probe_fast_1chan...
not applicable
I: testing cmd_read_fast_1chan...
not applicable
I: testing cmd_logic_bug...
not applicable
I: testing cmd_fifo_depth_check...
not applicable
I: testing cmd_start_inttrig...
not applicable
I: testing mmap...
not applicable
I: testing read_select...
not applicable
I: testing bufconfig...
buffer length is 0, good
I:
I: subdevice 6
I: testing info...
rev 1
I: subdevice type: 8 (memory)
number of channels: 512
max data value: 255
ranges:
all chans: [0,1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 88 us
I: testing cmd_no_cmd...
got EIO, good
I: testing cmd_probe_src_mask...
not applicable
I: testing cmd_probe_fast_1chan...
not applicable
I: testing cmd_read_fast_1chan...
not applicable
I: testing cmd_logic_bug...
not applicable
I: testing cmd_fifo_depth_check...
not applicable
I: testing cmd_start_inttrig...
not applicable
I: testing mmap...
not applicable
I: testing read_select...
not applicable
I: testing bufconfig...
buffer length is 0, good
I:
I: subdevice 7
I: testing info...
rev 1
I: subdevice type: 5 (digital I/O)
number of channels: 10
max data value: 1
ranges:
all chans: [0,1]
I: testing insn_read...
rev 1
comedi_do_insn returned 1, good
I: testing insn_read_time...
rev 1
comedi_do_insn: 3
read time: 2 us
I: testing cmd_no_cmd...
got EIO, good
I: testing cmd_probe_src_mask...
not applicable
I: testing cmd_probe_fast_1chan...
not applicable
I: testing cmd_read_fast_1chan...
not applicable
I: testing cmd_logic_bug...
not applicable
I: testing cmd_fifo_depth_check...
not applicable
I: testing cmd_start_inttrig...
not applicable
I: testing mmap...
not applicable
I: testing read_select...
not applicable
I: testing bufconfig...
buffer length is 0, good
<< End forwarded message
Received on 2002-07-02Z12:59:50