Thread: Code check ASAP
View Single Post
  #3   Spotlight this post!  
Unread 15-02-2011, 20:19
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Code check ASAP

I don't use LabView myself, so I am not sure on what the best way to do it is, but here is how I would do it in a text-based language:

Create a boolean called "homeHasBeenPressed" that is initially false.
When the home button has been pressed, set that boolean to true.

if (homeHasBeenPressed)
doStuff();


I've always had a bit of a distaste for LabView's lack of variables, but you should be able to take the above and apply it to LV without too much trouble.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
Reply With Quote