View Single Post
  #5   Spotlight this post!  
Unread 20-01-2009, 08:18
Woodie Flowers Award
JDNovak JDNovak is offline
Mentor
AKA: John Novak
FRC #0016 (Bomb Squad)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 1996
Location: Mountain Home, AR
Posts: 52
JDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond repute
Post Re: Digital I/O Dilemma

Be sure to start the encoder or it won't count. I spent an hour remembering this last night. . .

Encoder1->Start();

I test them by getting the value and printing to the console.

signed mouseXPosition = Encoder1->Get();

printf("MouseX %d\r\n", mouseXPosition);

You can view the console output by right right clicking on the connection to the cRIO and selecting Target Tools / Target Console. This will display all printed data until a reboot.