Go to Post "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." - Albert Einstein - Edward Debler [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 24-01-2011, 22:20
MattCarey3625's Avatar
MattCarey3625 MattCarey3625 is offline
#3625 Programming and Wiring Head
FRC #3625 (Some Assembly Required)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Virginia Beach, VA
Posts: 23
MattCarey3625 is an unknown quantity at this point
Drive Function (Complete Rookie)

Hello, I'm sorry if there is a post like this already, although I looked and saw none. I am just now starting to understand LabVIEW and we have just gotten a working program for motor controll but how do we use a Drive Function or use multiple motors at once? I tried and what I came up with is the attached. I have tried the LVMastery but I find it hard to learn from. Thank you for any responses.
Attached Files
File Type: vi Dual Motor Prototype.vi (19.2 KB, 13 views)
__________________
matt@hp-mini-110$> sudo make robot
sudo pass for matt:
unable to make robot
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2011, 22:59
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: Drive Function (Complete Rookie)

Quote:
Originally Posted by MattCarey3625 View Post
multiple motors at once?
Do this:

(1) Right click on block diagram
(2) Choose WPI Robotics Library
(3) Robot Drive
(4) Choose which ever you want (open two motors or four motors etc.)

If you are using 4 wheel drive(normal wheels), choose Arcade Drive

Hope it helped
__________________
"A team back in training !"
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2011, 17:31
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: Drive Function (Complete Rookie)

what he said.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2011, 13:52
varun1718's Avatar
varun1718 varun1718 is offline
ToaD
AKA: Varun Jasuja
FRC #1669 (Jaganators)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Long Beach
Posts: 8
varun1718 is an unknown quantity at this point
Send a message via AIM to varun1718
Re: Drive Function (Complete Rookie)

If the in-built drive functions are too complicated for you, Use the Motor VIs from the Actuators part of WPI Library. You can set up individual motors this way and build your own drive system.

I did that my rookie year just to see how the drive function worked.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2011, 14:43
MattCarey3625's Avatar
MattCarey3625 MattCarey3625 is offline
#3625 Programming and Wiring Head
FRC #3625 (Some Assembly Required)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Virginia Beach, VA
Posts: 23
MattCarey3625 is an unknown quantity at this point
Re: Drive Function (Complete Rookie)

Thanks for replies. I got a motor program up without using the sets for 1 joystick turn controll. Thank you though!
__________________
matt@hp-mini-110$> sudo make robot
sudo pass for matt:
unable to make robot
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2011, 15:43
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Drive Function (Complete Rookie)

You need to decide whether you are using arcade drive or tank drive (or something else). For arcade drive, you need to open up the arcade drive vi and wire in the joystick you will use and such. For tank drive, use the tank drive vi and open 2 joysticks. Wire the ONLY the y axes of the joysticks to the tank drive axes inputs. It's probably a little difficult to read this, but I hope this helps!
Reply With Quote
  #7   Spotlight this post!  
Unread 26-01-2011, 23:06
MattCarey3625's Avatar
MattCarey3625 MattCarey3625 is offline
#3625 Programming and Wiring Head
FRC #3625 (Some Assembly Required)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Virginia Beach, VA
Posts: 23
MattCarey3625 is an unknown quantity at this point
Re: Drive Function (Complete Rookie)

Quote:
Originally Posted by Wolfgang View Post
You need to decide whether you are using arcade drive or tank drive (or something else). For arcade drive, you need to open up the arcade drive vi and wire in the joystick you will use and such. For tank drive, use the tank drive vi and open 2 joysticks. Wire the ONLY the y axes of the joysticks to the tank drive axes inputs. It's probably a little difficult to read this, but I hope this helps!
Today I coded the attached VI. Is the arcade drive function do what this does? If so I should probably use that and shorten the code.
Attached Files
File Type: vi single_controller_0.1.2.vi (13.4 KB, 8 views)
__________________
matt@hp-mini-110$> sudo make robot
sudo pass for matt:
unable to make robot
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2011, 11:05
Clayton Yocom's Avatar
Clayton Yocom Clayton Yocom is offline
Programming Mentor
FRC #0027 (RUSH)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Clarkston, MI
Posts: 87
Clayton Yocom will become famous soon enoughClayton Yocom will become famous soon enough
Send a message via AIM to Clayton Yocom Send a message via MSN to Clayton Yocom Send a message via Yahoo to Clayton Yocom
Re: Drive Function (Complete Rookie)

Yes, this is what arcade drive does, here and here are what you really need to try to duplicate.

Both of those are actually in the FRC cRIO Robot Project framework that you can use in labview. (in wpi robotics library there are open 2 motors and open 4 motors btw, which will then map them to a single referum name then arcade drive can address both of them. )
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 10:17.

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