- From: Klaas Gadeyne <Klaas.Gadeyne_at_mech.kuleuven.ac.be>
- Date: Tue, 27 Apr 2004 10:57:06 +0200 (CEST)
> The last days I tried to figure out if comedi supports the 2 counters that are > present on the NI6036E card. > I'm quite confused by the different mails about the 660x and other cards and > wonder if it works for the 6036E, too. > The info-program shows me that a counter is present as subdevice 4 (two > channels, range 0,1 - everything is fine). But when I read from subdevice 4, > channel 0 it first shows a fixed value of 0 <= x <= (1 << 23) and when I > switch from channel 0 to channel 1 and back the after a while _something_ is > counted (from 1 << 32 down to 0 and wrapping around, indefinetly). _Nothing_ > is connect to any input-pin on the connector-box! > What exactly is reported with the read command? When reading, you call the ni_gpct_insn_read instruction. Have a look at the driver code file ni_mio_common.c, in particular the section about the gpct stuff. Did you configure/reset your counter subdevice before reading it? > I use the labview 6.0 comedi-VIs, so there is no additional configuration > possibility for the counters right now. > But I'm willing to write my own VI or C-program if someone points to whether > it is possible _now_ to use the 6036E-counter. > Are there any example sources? Can I use the 6602-sources? There is some similarity between the 2 drivers, but there not completely equivalent. Feel free to merge the code! I only tested the 6601/6602, so I'm not sure the counter code of the 6036E works (but I wouldn't know why it shouldn't). You'll have to look in the driver file for retrieving the API though. regards, klaas
Received on 2004-04-27Z07:57:06