View Single Post
  #8   Spotlight this post!  
Unread 06-01-2007, 15:08
Davx's Avatar
Davx Davx is offline
Davux
AKA: Dave Amenta
FRC #0195 (Cyber Knights)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Southington, Connecticut
Posts: 16
Davx will become famous soon enoughDavx will become famous soon enough
Send a message via AIM to Davx Send a message via MSN to Davx
Re: I have a quistion about stopping the autonomous mode...

Correct, you (almost) never want to use a while loop in your code, since that's not how the logic is setup. The program is based on each loop getting new data from the OI at the beginning, and setting the outputs at the END, and ONLY at the end. (Yes you could call putdata yourself, but lets not go there) A while loop will do nothing but lock up your program and eventually the watchdog timer will shut off the User proc and you'll get a code error indicator.
__________________
--David Amenta - Dave Amenta .com - Person Meets Profession