- From: Jonathan Maltz <jon_at_eecs.berkeley.edu>
- Date: Sat, 8 Nov 2003 11:45:11 -0800 (PST)
I am trying to get a DAQCard-6036e working. Everything seems to configure
fine, but when I run cmd or any other analog input command, all the
returned samples are zero until a certain point, after which they are
non-zero near some value, but these values are inconsistent between invocations
of cmd.
The details are as follows:
kernel log:
Nov 7 13:22:24 bion cardmgr[25177]: socket 0: National Instruments
DAQCard-6036E
Nov 7 13:22:24 bion cardmgr[25177]: executing: 'modprobe ni_mio_cs'
Nov 7 13:22:24 bion kernel: comedi: version 1.0.0 - David Schleef
<ds_at_schleef.org>
Nov 7 13:22:24 bion cardmgr[25177]: + Warning: loading
/lib/modules/2.4.22/comedi/ni_mio_cs.o will taint the kernel: no license
Nov 7 13:22:24 bion cardmgr[25177]: + See
http://www.tux.org/lkml/#export-tainted for information about tainted modules
Nov 7 13:22:24 bion cardmgr[25177]: + Module ni_mio_cs loaded, with warnings
Nov 7 13:22:24 bion cardmgr[25177]: executing: './comedi start ni_mio_cs'
Nov 7 13:22:24 bion modprobe: modprobe: Can't locate module char-major-98-0
Nov 7 13:22:24 bion kernel: comedi0: ni_mio_cs: DAQCard: io 0x0100, irq 3,
DAQCard-6036E
[root_at_bion demo]# /sbin/lsmod
Module Size Used by Tainted: P
ni_mio_cs 32524 0
comedi_fc 1812 0 [ni_mio_cs]
comedi 25300 0 [ni_mio_cs comedi_fc]
parport_pc 16452 1 (autoclean)
lp 7712 0 (autoclean)
parport 23424 1 (autoclean) [parport_pc lp]
ohci1394 29160 0 (unused)
ieee1394 65124 0 [ohci1394]
ext3 69572 1 (autoclean)
jbd 49664 1 (autoclean) [ext3]
mousedev 5556 1
keybdev 2944 0 (unused)
input 5760 0 [mousedev keybdev]
[root_at_bion demo]#
[root_at_bion demo]# ./cmd
command before testing:
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
second test returned 0 (success)
start time: 1068320222.234906
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
.... many zeros
0 0 0 0
0 0 0 0
14611 14585 14610 14599
14607 14581 14603 14592
14605 14579 14602 14587
14598 14575 14600 14586
14596 14572 14594 14581
14592 14569 14594 14580
14594 14566 14589 14578
14584 14561 14584 14573
14581 14557 14585 14568
14578 14554 14580 14565
14574 14551 14576 14564
14572 14549 14569 14560
14571 14547 14573 14559
14566 14540 14567 14554
14564 14538 14563 14549
14559 14534 14559 14546
14557 14533 14554 14543
14556 14529 14553 14543
14551 14526 14550 14536
14546 14521 14545 14533
14543 14517 14546 14529
14539 14516 14540 14528
14536 14515 14540 14524
14529 14511 14532 14519
end time: 1068320273.941460
time: 4.004909
second run yields same, but different numbers at end:
7728 7706 7722 7700
7720 7697 7715 7693
7709 7688 7705 7688
7702 7679 7692 7673
7694 7668 7685 7666
7684 7661 7677 7657
7676 7649 7670 7648
7666 7643 7661 7640
7656 7631 7651 7633
7649 7625 7643 7623
7641 7617 7635 7614
7632 7606 7624 7603
7625 7601 7614 7596
7616 7592 7610 7586
end time: 1068320510.053416
time: 4.004934
Numbers get smaller with each successive run of cmd.
card description in ni_mio_cs.c:
{ device_id: 0x0245,
name: "DAQCard-6036E", /* specs incorrect! */
n_adchan: 16,
adbits: 16,
ai_fifo_depth: 1024,
alwaysdither: 1,
gainlkup: ai_gain_4,
ai_speed: 5000,
n_aochan: 2,
aobits: 16,
ao_fifo_depth: 0,
ao_unipolar: 0,
has_8255: 0,
caldac: {dac8800,dac8043},
},
versions: kernel 2.4.22
comedi-0.7.67
comedilib-0.7.21
The same thing happens on a Dell Inspiron 8000 and D600.
The card works perfectly under windows.
All help much appreciated
Jonathan
Received on 2003-11-08Z19:45:11