View Single Post
  #3   Spotlight this post!  
Unread 19-02-2011, 14:09
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: Arm problem with PWM in teleop code

Quote:
Originally Posted by Ian McShane View Post
When i go into the front panel of the set output motor vi in teleop to change one to PWM 5 and the other to PWM 6,...
You should not be changing anything inside those functions. You need to wire things to the function inputs. One of the inputs to the Set Output function is a "device reference", which you need to get from the output of a "Refnum Get" function.

Look at the motor control example, and then look at Tutorial 7 - Integrating Examples into Robot Code for detailed instructions. The tutorials are accessed from LabVIEW's Getting Started window.
Reply With Quote