- From: Tim van Zon <zon_at_knmi.nl>
- Date: Fri, 01 Jun 2007 07:41:07 +0000
Dear all, I have been trying for some time to get my m-series ni-6225 pci-DAQ-card working properly using comedi on a 64-bit pc running a 2.4.27 kernel. (I am using this old kernel because in the past it worked great with NI e-series cards and comedi. I read on the NI-site that using a 64-bit PC running 32 bit Linux should not give any driver problems.) Furthermore, I have not installed rtai or the like. Some months ago, I installed the comedi 0.7.73 and comedilib-0.7.22. The installation seems to be OK, but the data from the AI is always the same: 65535 (which is the same number as 'maxdata') when using an old application, which works for e-series cards. All channels were floating, except for channel 1, which was connected to a function generator. I have also tried some of the programs from comedilib/demo: (changed 'channel' to the proper (connected) channel) inp returns -1 cmd returns proper timing info and 65535 for data-samples insn returns proper timing info and ten times -1 as data tut1 also returns -1 tut2 returns -1 1.31073e+06 The command 'dmesg' gives: Available NI device IDs: 0x716c comedi0: ni_pcimio: pci-6225MITE:0xe0a00000 mapped to e00a6000 DAQ:0xe0a01000 mapped to e00a8000 mite: version = 1, type =4, mite mode = 1, interface mode = 3 mite: num channels = 8, write post fifo depth = 128, wins = 0, iowins = 2 ( irq = 16 )m_series_stc_writew: FIXME: register 0xb does not map cleanly on to m-series boards. m_series-stc_readw: bug! unhandled register=0x3a in switch. m_series-stc_readw: bug! unhandled register=0x4f in switch. m_series-stc_readw: bug! unhandled register=0x50 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. ni_mio_common: DMA overwrite of free area m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. m_series-stc_readw: bug! unhandled register=0x7 in switch. ... and so on I tried to find the register-programming info on the NI-site for the stc2 used on the m-series card, but could only find a draft version. (which seems incorrect, because somewhere there were 4 bits to supply a channel number, but my card has 80 channels, so that cannot be addressed using only 4 bits....) The first 3 errors with registers 0x3a, 0x4f, 0x50 seems related to RTSI (real time system integration), but I do not think I use that. (According to the E-series manual) Last Tuesday I borrowed a Windows-XP machine and then the card functions properly. The function generator applied voltage is measured accurately. That is, when using the RSE-measuring-mode (referenced single-ended) in NRSE-mode, the signal was going everywhere. So here is my first question: What measuring mode does comedi use and how could I change it to RSE, if needed? I have sent a similar email to the list some time ago and I got the advice to use the latest CVS version (or was that for my calibration problems only?) Anyway, after solving some firewall problems (and figuring out it was a firewall problem), I got a fresh CVS version. Unfortunately, after some effort, I only got comedilib to compile, but not comedi. (Due to my old Linux installation (redhat 9), I have an outdated autoconf, etc....) And here is my second question: does someone have an NI m-series card working for AI using comedi? Thanks in advance, Tim
Received on 2007-06-01Z06:41:07