View Single Post
  #2   Spotlight this post!  
Unread 27-02-2010, 17:09
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: need a simple motor program

Did you find the single motor palette okay?
It can be gotten to in two different places:
WPI Robotics Library -> Actuators -> MotorControl
or
WPI Robotics Library -> RobotDrive ->Advanced -> MotorControl
----------------------------------------
Begin.vi -- open everything here
  • Motor Open (open the PWM and tell LabVIEW what it's going to be)
  • Motor Refnum Set (name your motor)
Teleop.vi -- use everything here
  • Motor Refnum Get (usually kept outside the case, so it can be used in all cases if necessary)
  • Motor Set speed (inside the Teleop Execute case)
Finish.vi -- close everything here
  • Motor Refnum Get
  • Motor Close
I removed much of the cluttering default code in these screen shots.
Attached Thumbnails
Click image for larger version

Name:	MotorExample.jpg
Views:	47
Size:	34.7 KB
ID:	8818  Click image for larger version

Name:	MotorExample3.jpg
Views:	35
Size:	34.9 KB
ID:	8819  Click image for larger version

Name:	MotorExampleB.jpg
Views:	32
Size:	34.3 KB
ID:	8820  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-02-2010 at 17:42.
Reply With Quote