Thread: encoders
View Single Post
  #24   Spotlight this post!  
Unread 13-01-2005, 14:37
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: encoders

Quote:
Originally Posted by gwross
Here's what I would do to verify that your encoder is working: In the routine where you are controlling the arm, add the following code:
Code:
int tempEncoder;
static int prevEncoder = 0;
...
tempEncoder = Get_Left_Encoder_Count();
if (tempEncoder != prevEncoder) {
   printf("%d ", tempEncoder);
   prevEncoder = tempEncoder;
}
which screen will it print to when running the program? I know in the link cable program thing to download the (ifi loader) program, there's a little screen.
is it in that?
that would be hard to trace, because it prints out hundreds of lines, and there isn't a way to print or save it to a file for viewing. guess I can search it. thanks!

also, I don't know if it matters, but what are the three "..." periods for after the previous static encoder.

Last edited by stephenthe1 : 13-01-2005 at 14:40.