View Single Post
  #4   Spotlight this post!  
Unread 06-02-2009, 09:12
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Labview Help, Rookie

Quote:
Originally Posted by Jill View Post
how do you program limit switches in LabView? We want a door to pivot up when we press a button, and go until it hits a limit switch. Then we want to press the button and have it go back down until it hits another limit switch. Would it be difficult to run both up and down with one button? (When button's pressed, if top switch=1 then run motor backwards to the bottom switch, and vice versa.)
Sure. Here's an image that demonstrates it. I haven't tested this, just off the top of my head. It uses a feedback node to keep track of the motor value, set to 1 at the start, and when anyone of the limit switches goes off, it negates the value. If you have any questions, feel free to ask.
Attached Thumbnails
Click image for larger version

Name:	limit_switch_drive.PNG
Views:	97
Size:	15.3 KB
ID:	7337  
__________________
Twitter Profile
Reply With Quote