Go to Post All the gangstas in FRC have solid gold CRios. It's called "blingage". If you don't have a solid gold CRio, you're not a straight-up G. :D - Jamie Kalb [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2011, 15:24
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Motor control isnt working

hello, i have got another question. i have our movement working with a tank control vi, but im trying to run a fisher price motor for our arm, and the code isnt working. it seems like it should since i am pretty much using the motor control example on the examples. eventually i want to be able to change the speed value with a button, but that is not important right now, because i just want to set the motor to a speed value of 0 and iv been checking for a solid yellow light instead of the blinking one for a loss of data link. i looked around and it seems i might need a small 6v jumper for the motor, but i was having this same program trying to use the motor control program on the drive system, but when i switched to using the tank control vi it worked fine. i dont think i can use that vi since i am only using one motor and its not going to be controlled with a joystick.

here is a sample of my code.

https://picasaweb.google.com/lh/phot...t=d irectlink

sorry for the wall of text.
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2011, 15:35
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,113
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: Motor control isnt working

If you are using exactly the motor control example it should work.

If you are trying to integrate it into your own robot project, you are missing the instructions for how to take the examples and put them in your code.

Things to the left of the example's while loop need to go in the Begin vi. Things inside the loop go in Teleop. Things to the right of the loop go in Finish. To communicate the reference that Open provides, use a Motor RefNum Set in Begin with a name you choose -- see the other things in Begin for how that works -- and use a Motor RefNum Get in both Teleop and Finish.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2011, 18:33
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Re: Motor control isnt working

so i tried using the motor control example and it didnt work. this means the electrical is wrong right? do i need to put a 6v jumper next to the pwm channel? (and the 6v jumpers are the small white hard drive like jumpers correct)?

thanks
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi