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