Go to Post The most important part anyone can lend is just a hand. - Libby K [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 29-01-2015, 16:30
Nickalahoby Nickalahoby is offline
Registered User
FRC #5555
 
Join Date: Jan 2015
Location: Warren
Posts: 2
Nickalahoby is an unknown quantity at this point
[Request]Help with Basic Design of Program

Hi, this is my first time posting here, and my first time using these forums, first time using Labview, first time making a program for Labview FRC, and First time being on FIRST. Just to give you an understanding of what I already know; I can understand the basics of how Labview works, with the Vi's and wiring. However, I'm not entirely sure how the Vi's need to be wired together or what needs to be included in a program for it to be a completed function for the robot to utilize.

My first question concerns the drive system my team has decided to use(Tank Drive). We have a 3 wheeled chassis with no special wheels and are using 4 motors for it. So, is the example program for Tank drive usable on its own? I would assume it requires some slight modifications, per say the motor controllers, or what inputs we have such as USB ports. But in whole, are there any major modifications that would need to happen for the base Tank Drive VI to be usable? Also, a slight follow up question; would it be considered illegal to just straight up use the Tank drive sample program?

Second question concerns our only other function, which is a basic pulley lift with one motor. Essentially a positive rotation of the motor would result in the lift moving up, and a negative spin results in a descent. Furthermore, would the program needed to construct a more simple system like this require such a detailed program as how the Tank Drive VI looks?

If anymore details are required, I would be more than happy to give them. If I'm asking a bit too much or asking something wrong, I apologize; being that this is my first year, and my team's first year, I'm not too sure of much of anything.

Thanks in advance!
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2015, 17:14
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: [Request]Help with Basic Design of Program

Quote:
Originally Posted by Nickalahoby View Post
We have a 3 wheeled chassis with no special wheels and are using 4 motors for it.
Do you mean three wheels on each side of the chassis, with each side independently controlled with two motors each?

Quote:
Originally Posted by Nickalahoby View Post
So, is the example program for Tank drive usable on its own? I would assume it requires some slight modifications, per say the motor controllers, or what inputs we have such as USB ports. But in whole, are there any major modifications that would need to happen for the base Tank Drive VI to be usable? Also, a slight follow up question; would it be considered illegal to just straight up use the Tank drive sample program?
It is legal to use this as is. The default example is written for two motor drive (this is defined in Begin.vi).

Here are two options to get that code up and running with your system
  1. Use two PWM ports, PWM 0 for one side, and PWM 1 for the other and use a Y splitter to each motor controller
  2. Switch out the "Open2MotorDrive" with "Open4MotorDrive" and configure it to match the wiring and configuration of your bot

The example also uses a one joystick arcade mode, if you want to customize that you will need to modify which function is called.

Quote:
Originally Posted by Nickalahoby View Post
Second question concerns our only other function, which is a basic pulley lift with one motor. Essentially a positive rotation of the motor would result in the lift moving up, and a negative spin results in a descent. Furthermore, would the program needed to construct a more simple system like this require such a detailed program as how the Tank Drive VI looks?
It will depend entirely on how you want to control it. Does a simple joystick axis suffice? Do you want a button for up/down? Do you want to have pre-defined positions for the pulley system? Will you have a sensor on the pulley somewhere? Do you need to control the speed? Will you have limits in place to prevent damage?

How complex your code is will depend on how you want to implement it.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2015, 17:25
Nickalahoby Nickalahoby is offline
Registered User
FRC #5555
 
Join Date: Jan 2015
Location: Warren
Posts: 2
Nickalahoby is an unknown quantity at this point
Re: [Request]Help with Basic Design of Program

Our chassis is 3 wheels on each side with 2 motors controlling each side, so 6 wheels total, and 4 motors total. Didn't realize I kinda half clarified that.

And our lift system is going to be controlled by 2 buttons, with Button "A" making the lift system go up at a specified rate, and Button "B" makes the lift descend at a specified rate. So in essence, we have 2 inputs controlling the output of one motor, one causing a negative turn, the other a positive turn.

Thanks for the clarification on the other parts I addressed as well.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2015, 19:46
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: [Request]Help with Basic Design of Program

Quote:
Originally Posted by Nickalahoby View Post
...would it be considered illegal to just straight up use the Tank drive sample program?
It's legal, but it's not a good idea. The example code is missing most of the features that communicate with the Field Management System, and it won't be sending useful diagnostic data to the Dashboard.

What you really ought to do is to replace the Arcade Drive block in the Teleop vi with a Tank Drive block. You'll need to add the second Joystick Open to the Begin vi, and the second Joystick Get Values to Teleop, using what's inside the example's While loop as a guide.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2015, 23:36
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Thumbs up Re: [Request]Help with Basic Design of Program

Quote:
Originally Posted by Nickalahoby View Post
Hi, this is my first time posting here, and my first time using these forums, first time using Labview, first time making a program for Labview FRC, and First time being on FIRST. Just to give you an understanding of what I already know; I can understand the basics of how Labview works, with the Vi's and wiring. However, I'm not entirely sure how the Vi's need to be wired together or what needs to be included in a program for it to be a completed function for the robot to utilize.

My first question concerns the drive system my team has decided to use(Tank Drive). We have a 3 wheeled chassis with no special wheels and are using 4 motors for it. So, is the example program for Tank drive usable on its own? I would assume it requires some slight modifications, per say the motor controllers, or what inputs we have such as USB ports. But in whole, are there any major modifications that would need to happen for the base Tank Drive VI to be usable? Also, a slight follow up question; would it be considered illegal to just straight up use the Tank drive sample program?

Second question concerns our only other function, which is a basic pulley lift with one motor. Essentially a positive rotation of the motor would result in the lift moving up, and a negative spin results in a descent. Furthermore, would the program needed to construct a more simple system like this require such a detailed program as how the Tank Drive VI looks?

If anymore details are required, I would be more than happy to give them. If I'm asking a bit too much or asking something wrong, I apologize; being that this is my first year, and my team's first year, I'm not too sure of much of anything.

Thanks in advance!

Here's your plan:
ScreenSteps: https://wpilib.screenstepslive.com/s/4485
https://wpilib.screenstepslive.com/s...p-test-program

FIRST, NI, and WPI have handed you a working robot (THANKS TO YOU ALL). Work through the tutorials. After step 6 in tutorial 4, you have a working arcade drive robot. Keep burningthrough the tutorials and you will be able to set up tank drive, and other, more dangerous things.

Start NOW and don't slow down. Read ScreenSteps at every opportunity, and search Chief Delphi for anything. It will probably be there.

Good Luck and Have Fun!
Tim
__________________
Software Mentor
3853 Pridetronics[

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 08:48.

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