Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Drive Function (Complete Rookie) (http://www.chiefdelphi.com/forums/showthread.php?t=90020)

MattCarey3625 24-01-2011 22:20

Drive Function (Complete Rookie)
 
1 Attachment(s)
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.

whcirobotics 24-01-2011 22:59

Re: Drive Function (Complete Rookie)
 
Quote:

Originally Posted by MattCarey3625 (Post 1007653)
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 :)

Ian McShane 25-01-2011 17:31

Re: Drive Function (Complete Rookie)
 
what he said.:)

varun1718 26-01-2011 13:52

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.

MattCarey3625 26-01-2011 14:43

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!

Wolfgang 26-01-2011 15:43

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!

MattCarey3625 26-01-2011 23:06

Re: Drive Function (Complete Rookie)
 
1 Attachment(s)
Quote:

Originally Posted by Wolfgang (Post 1008896)
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.

Clayton Yocom 27-01-2011 11:05

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. )


All times are GMT -5. The time now is 10:17.

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