05-26-2006 01:37 AM
05-26-2006 04:01 PM
Makotoz,
Yes the M-Series cards have two counters, so the card will support two encoders. What is the error you are getting, and how (programming-wise) are you trying set up the measurement? Feel free to post a slimed down version of your code.
-GDE05-26-2006 07:52 PM
05-30-2006 08:08 PM
Makotoz,
Is there any specific reason you must
use that routing that you are, because that is what is causing your problems. I
have taken the basic count events example here and set it up for 2 encoder
measurements. It runs just fine on my end. So take a look at it, and see if
that helps you out.
-GDE
06-01-2006 04:03 PM
GDE,
We are using Labview 7 and cannot open your file. Is it possible for you to save it in a Labview 7 file?
06-02-2006 10:36 AM
06-02-2006 03:31 PM
Hi GDE,
I was able to open the program with Labview 7.1. I will be attempting to run the program later today, but I would like to ask you about the connections. Before I was using PFI's to access counter_aux 0 and 1. Do I still use the same connections set up with my Elvis prototyping board? I notice that you didn't use any PFI switch ups in your program like I did to access those counter_aux terminals that are not available on my prototyping board.
If I don't hear from you today, I'll still try it out and report back to you.
Thanks for all your help thus far.
Makotoz
06-02-2006 08:27 PM
06-05-2006 07:46 AM
I have no knowledge at all about your "Elvis" prototyping board, so the only help I can think to offer is something else I spotted.
The error message you got refers to your task as "CI.CountEdges". If you have quadrature encoders, you should be configuring your counter task differently. You want to use one of the "position" modes rather than the edge-counting mode. You can select either linear or angular position, whichever makes more sense for your app. There are shipping examples to look at also if you search for terms like encoder or position.
I'd also recommend using the default pins if at all possible. It's one less complication while you're troubleshooting your problem. Once you get it working on default pins, *then* try configuring the pins you'd rather use.
- Kevin P
06-07-2006 12:22 PM
Kevin P,
Thank you for your response. The encoder is not a quadrature. There is no z-connection, so I wasn't able to use the "position" modes.
Do you have any other suggestions?
Makotoz