View Single Post
  #4   Spotlight this post!  
Unread 06-02-2012, 12:57
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Simple Calculation

The trick is that you don't want to add 5 and 5 together repeatedly, becasue the answer is always 10. You want to add 5 to the result of the previous calculation. To do this you need to remember the previous calculation. In LabVIEW, there are two structures that remember a value from a previous loop, they are a feedback node and a shift register.

If you use one of those, you should be able to get it to count to 40.
Reply With Quote