View Single Post
  #7   Spotlight this post!  
Unread 23-10-2010, 15:49
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: How do i add two "True" values

It looks like boolean operators would help simplify this. For example, where you have several nested case statements in which some of the cases do nothing, you could just have the appropriate ands, ors, xors, nots, etc. leading to a single case. Do a little exploration of the boolean pallete (functions >> programming >> boolean) with context help. And then maybe try some truth tables with all possible inputs and their desired outputs to figure which ones you need to use.

edit: The link Ether posted below explains all the boolean operators (except implies, but that's a derived one anyway) available on the boolean pallete. It also has the "truth tables" I was talking about, showing all pairs of inputs and their associated output. Also, check out the "Select" VI (also on the boolean pallete) for picking motor speeds. With some of the boolean tools you might be able to get rid of the case statements all together.

Last edited by Aren Siekmeier : 23-10-2010 at 17:12.
Reply With Quote