View Single Post
  #1   Spotlight this post!  
Unread 11-04-2009, 17:55
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
How to force break a loop

Not a problem, just a question:
In my autonomous independant VI, I use a while loop, and have the "false" constant tied to the conditional terminal. (It's set to stop if true)
From what I can tell, the robot should be stuck in Disable once the DS switches to teleop, because the code should be stuck in autonomous (it doesn't look like there's anything to stop the autonomous code and allow Teleop to proceed).

How does Labview force that loop to break execution?
Or am I using a very inefficient coding technique in that Labview doesn't actually stop the autonomous code, it just ignores it?

I'm not running into any problems, it just seems like a very useful thing to know.
__________________
-- Marshal Horn
Reply With Quote