Thread: Error
View Single Post
  #3   Spotlight this post!  
Unread 15-02-2011, 12:27
dqmot17's Avatar
dqmot17 dqmot17 is offline
Orange Hat
FRC #0247 (Da Bears)
Team Role: Webmaster
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 142
dqmot17 can only hope to improve
Send a message via AIM to dqmot17
Re: Error

So when you are writing LabVIEW code, you really want to make sure you don't have race conditions. A race condition is where one piece of code 'races' with another to see which executes first. To prevent that, you can use the Error in/out. This way, it has to use an order and you know absolutely how things are going to run. It is also helpful to put an indicator somewhere connecting to an error out in case something is erroring out. It is just another debugging tool.

I haven't used the safety VIs yet in my code, but they are used inside other of the WPI VIs
__________________
2009 Championship Finalists & 3 Blue Banners
Reply With Quote