Re: NI PCI-6025e counter problem

Hello Leon,

If you ever find the answer, please post it to the mailing list! I would 
be more than interested.

Kind regards,
Arno Stienen.

tupperfungus_at_netscape.net wrote:
> Hi,
> 
> I'm trying to figure out how to use comedi to read from one of the two 
> counters on the NI PCI-6025e board.
> I've tried using:
> 
> comedi_data_read(device, 4, 0, 0, AREF_GROUND, &data)
> 
> since i know it's the fifth subdevice on the board and I want to read 
> from the first channel using the only available range for the subdevice.
> On the hardware end, I've got a two channel (A and B) encoder that I 
> convert to CLK and UP/DN signals using an LS7084 chip (very similar to 
> LS7184) as explained in the NI website's "Using Quadrature Encoders with 
> E Series DAQ Boards" at:
> http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&36BD71244BB26
> FC886256869005E541B
> 
> I'm connecting the LS7084's CLK signal to the board's PFI8/CTR 0 SRC 
> line and the UP/DN signal to the P0.6 line. I've checked the two signals 
> coming out of the LS7084 and they seem to be functioning correctly.
> 
> The problem is that the value I get from the comedi_data_read call does 
> not change (it's a large number on the order of 2^24, which is 
> encouraging since the counter is 24 bit). The signals coming into the 
> board do not seem to be incrementing the internal counter up or down.
> 
> Am I doing something wrong either in how I'm connecting these signals 
> (do I need to do something with the CTR 0 GATE line as well?) or am I 
> not setting something up properly on the comedi end?
> 
> Any help would be greatly appreciated.
> 
> Thanks a lot,
> -Leon Aksman
> ___________________________________________________
> Try the New Netscape Mail Today!
> Virtually Spam-Free | More Storage | Import Your Contact List
> http://mail.netscape.com
> 
> 
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

-- 
   ____
  /  |_| <<< IR. ARNO H.A. STIENEN >>>
|_ O  | Biomechanical Engineering | http://www.bw.ctw.utwente.nl
|_|__/  a.h.a.stienen_at_utwente.nl  | +31-(0)53-489-4778
UTwente "There are alternatives: Firefox, Thunderbird & OpenOffice!"

Received on 2006-02-10Z09:11:50