View Single Post
  #4   Spotlight this post!  
Unread 31-01-2013, 12:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming Window Motor with Timer

Here's an example. It's a VI snippet, so you can just drag it into a LabVIEW block diagram and it'll be live code. It's designed to drop into Teleop. Change the RefNum names to match what you opened in Begin.vi.

The motor will run when the button is pressed, and it will continue running for one second after the button is released. If that's not what you wanted, there are a couple of simple modifications that can change the behavior.
Attached Thumbnails
Click image for larger version

Name:	Motor with one-second hold.png
Views:	53
Size:	32.9 KB
ID:	13734  
Reply With Quote