View Single Post
  #2   Spotlight this post!  
Unread 25-01-2013, 15:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Code Not Working Properly

I looked at the VI and have a few suggestions.

You are using a feedback node which can keep track of previous values, but you aren't really using the value stored in it.

The attached image shows how to use the feedback node to update the motor when the button changes and the new state determines what the motor does. It may be even better to select the value and update the motor in only one place.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Clipboard 1.png
Views:	9
Size:	26.7 KB
ID:	13653  
Reply With Quote