View Single Post
  #3   Spotlight this post!  
Unread 21-02-2011, 10:29
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Line Finders from Solenoid Breakout

Go to this page:
http://team358.org/files/programming...2009-/LabVIEW/

Find the example that says "Single Solenoid Example". Replicate the code in the Begin.Vi section of the image in your Begin.VI. The Solenoid open will have a box under it that says "Single" that is not pictured. You should have one copy of this little code snippet for each line sensor with the appropriate channel and a different refnum name for each one.

In your autonomous VI replicate the green Solenoid VIs from the section of the image which says Teleop.VI (you don't need the joystick part). You will need one copy for each sensor with the names matching the ones you used in Begin. Instead of wiring in a button, right click on the terminal, and go to Create->Constant. Then set the constant to True.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote