View Single Post
  #5   Spotlight this post!  
Unread 14-02-2011, 21:10
Speeder Speeder is offline
Registered User
AKA: Mr. Don
FRC #0316 (LuNaTeCs)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Salem County, NJ
Posts: 46
Speeder will become famous soon enough
Re: Light sensor as shaft encoder too fast for Lab View Code?

Quote:
At this point, we commented out the counter code and only put a Boolean LED on teleop front panel to blink every time shaft tape pass sensor. Note: Mainly the only code left is the Robot Main Code, I wanted to minimize user code being caught in any loops as possible problem. When slow, Boolean LED blink fine, correlated with the sensor LED blinking. When increase motor speed, Boolean LED looks like it would skip some flashes, but LED on sensor looked OK, did not skip. It is acting like the motor speed is going too fast for LABView to detect the sensor properly. I am surprised how slow we had to go to get it to work.
Try putting an indicator (numeric), either in your .vi or on the dashboard. Watch the indicator to see it count up/down. You'll probably see the sensor is working fine. There is a tremendous lag between the cRio and the Classmate display. The LED cannot possibly display accurately anything other than a very slow pulse but the numeric indicator, when the screen refreshes, will show actual counts.

Don