View Single Post
  #2   Spotlight this post!  
Unread 30-01-2013, 21:57
vhcook's Avatar
vhcook vhcook is offline
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Post Re: LabView Button Problems

Given two buttons, there are four possibilities you need to handle. Here's a simple truth table that shows them:

Code:
Button2    Button3    Result?
F          F          ??
F          T          Go Clockwise
T          F          Go Counter-clockwise
T          T          ??
On the "??" cases, you need to choose whether to do what it was already doing, stop, or some other specific action depending on what makes sense in your mechanism.

Use select VIs (or nested case statements or a select statement in a case statement, depending on what makes the most sense to you) to get the right result for each situation, then feed it to a Motor Set.