View Single Post
  #2   Spotlight this post!  
Unread 17-01-2013, 20:15
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: 180 turn on button press in labview

I think your problem is that you are checking if 100 or 40 is greater than or equal to your loop count. When you enter the loop, that counter will be 0, so it will exit the loop right away. You want LESS than or equal to - or you just need to swap the wires going into the comparison blocks you already have.

Also, you don't need to increment your loop counter - it increments itself every time the loop restarts.
Reply With Quote