Thread: Servo Help
View Single Post
  #1   Spotlight this post!  
Unread 09-12-2010, 19:12
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Servo Help

Since March I have been trying to develop a proper code for the servos. Recently I have been watching Labview tutorials from the FRC Mastery Tip Jar videos (http://www.lvmastery.com/tipjar) and have learned a great deal about clusters and creating codes via a typedef - in fact that is where I have gotten the idea to link up my objects and such. I have created a project and inside the begin VI i have created a separate typedef from the MatchInfo.ctl (for debugging purposes) and put a servo dev type into this cluster. I then linked it to the Teleop Vi where I used a unbundle by name to access this servo and then developed a code that would set the angles based on inputs from the controller. When I run this code nothing happens and all I get is an error that tells me that there is an improper refnum get. Must I use the refnum get and set for the latest Labview projects? Also, I am only trying to run one servo, not two so I don't need a splitter (if any clarity on this could be issued that would be great) and I have assumed that the black wire (i have black,red,yellow) is negative and have plugged it into the proper port on the PWM channel. If any one could help me on getting these darn things to work that would be helpful. Thanks