Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

6602 register level settings to latch encoder on RTSI trigger

Greetings,

I am currently using the 6602, comedi driver, and  real time linux to read 6 quadrature encoders.  I would like to add some functionality to the comedi driver that would latch the encoder values from a RTSI trigger.  I have the register programming manual for the 6602; However, I am not quite sure how I should set up the registers for this task.  If someone could help me figure out what bits need to be set in the 6602 registers, it would be greatly appreciated.

Thanks,
Greg
0 Kudos
Message 1 of 5
(3,739 Views)
Hi Greg -

I won't be able to help you with the Comedi driver, but I did find this KnowledgeBase article about it: KB 31GGUUBG
Among the things mentioned in the article are these:
    - The driver doesn't support counters
    - NI-DAQmx Base for Linux is a recommended, fully NI-supported alternative driver

If you need to continue using Comedi anyway, you might want to post your question in the MHDDK forum.  If anybody can help you, they're the most likely.

David Staab, CLA
Staff Systems Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,730 Views)
Thanks David for your reply.  I have been using Comedi to read the encoders and it works well.  While I could use some help with Comedi, my question is more related to the 6602 registers.  I need to know the register settings to set up a counter to latch an encoder value on a RTSI signal.  I can take care of the Comedi part.  Do you have any experience working with the 6602 on a register level.  NI has register level programming manual;  However, after reading it, I am unclear about what settings are necessary to set up a quadrature encoder to latch an encoder value on a RTSI signal as opposed to tracing the counter value in the SW Register.   I tried the DDK message board before posting to the counter message board, but I have not received a response.

Thanks Again,
Greg
0 Kudos
Message 3 of 5
(3,727 Views)
Hi greg -

Our DDK forum is serviced by our RLP team, of which I'm not a member.  So I won't be able to help with register-level questions about this board.  However, I'll make sure they're aware of your post to help you get an answer.
David Staab, CLA
Staff Systems Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,725 Views)

Hi Greg-

Please see my reply and continue the discussion in this thread.

Thanks-

Tom W
National Instruments
0 Kudos
Message 5 of 5
(3,718 Views)