View Single Post
  #2   Spotlight this post!  
Unread 09-03-2012, 07:24
JChavis's Avatar
JChavis JChavis is offline
Team 3490's "Pro./Electrician"
FRC #3490 (Vyper Drive)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2007
Location: Summerville, SC
Posts: 52
JChavis is an unknown quantity at this point
Thumbs up Re: How to make sequence happen ONCE, Period!

Quote:
Originally Posted by Alan Anderson View Post
Your limit switch code looks like it will do what you want, but without having the live VI to look at closely I'm not going to guarantee anything.
I don't know if this will help greatly, but with what you said, I will provide you the teleop VI.

Oh, and sorry about those arrows I placed, I just looked at them and noticed that they both touch a text box to the same case structure.

When you look at the diagram, just know that I placed the text boxes right next to the corresponding case structure.

Thanks David for that complement, I learned how to place a description of what "should" be going on in the code when I worked with MultiSim and Xilinx in my Digital Electronics class. That way, anyone who looks at the code can see (and hopefully understand) what that part does and what physically goes on.

Oh, and about the resulting "spaghetti code," I am not in any worry about what leads to where, for I made the program one section at a time and organized it as I went along...again something I learned from DE when I worked with programmable breadboards...
Attached Files
File Type: vi Teleop.vi (52.0 KB, 3 views)
__________________
Hmmm....I wonder if I can create a robot lawnmower with the knowledge I have gained from FRC.....
Reply With Quote