Go to Post Woody says that gracious professionalism is "acting how you would if you grandmother was watching you"... some people must have some really crazy grandmothers. (: - Cappeh [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2013, 15:58
eyeswideopened eyeswideopened is offline
Registered User
FRC #4557
 
Join Date: Jan 2013
Location: Connecticut
Posts: 13
eyeswideopened is an unknown quantity at this point
Unhappy General Labview Help

Ok, here is what is going on. I am on a first year team, my team like to be "dreamers" and they are asking a lot of the programming department. At the moment my team is using Labview to program the robot. Also, some other noteworthy things to add in are... 1) I am the only programmer 2) There is no programming mentor. I am on my own completely. Ihave programming experence but not with labview. I really need help with some major things because everything is going wrong and there are a lot of deadlines that are comming up that I do not thing I willbe able to meet without some serious help.

1) how do I make a throtle control for a) the drivemotors b) a seperate chain drive motor
2) what is that paddle like thing at the bottem of the attack 3 joystick called and how do I use it do control the throttle.
3) how do I do anything with pneumatics? they want to make a piston shoot the frisbees and I am totally lost.
4) how should I integrate all of this into tank drive
5) how do I set up communication with the cRIO?

anything else that is useful please help. If you need to you can contact me on my blog (http://eyes-wide-opened.tumblr.com) Any help would be appreciated.

Thank you.
  #2   Spotlight this post!  
Unread 01-02-2013, 16:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: General Labview Help

Quote:
Originally Posted by eyeswideopened View Post
1) how do I make a throttle control for a) the drive motors b) a separate chain drive motor
I assume a joystick is your throttle. Most drivers just lean on the joystick to move.
How do you want to control or override that movement?
Think about what you want to have happen and we'll help work you through what's needed.

Quote:
2) what is that paddle like thing at the bottom of the attack 3 joystick called and how do I use it do control the throttle.
It's called the throttle interestingly enough.
It shows up as axis 3(throttle) on a joystick Get.

Quote:
3) how do I do anything with pneumatics? they want to make a piston shoot the frisbees and I am totally lost.
There is example code using pneumatics under the Getting Started window -> Support -> Find FRC Examples..., then in the pneumatics folder.

Quote:
4) how should I integrate all of this into tank drive
That depends on how you want the throttle to work and what you want it to do for you.

Quote:
5) how do I set up communication with the cRIO?
The default robot project sets up everything you need.
Did you install:
  1. the Kit DVD
  2. The LabVIEW Update
  3. The Utilities update
  4. the Driver station update
Here are some other examples I use when teaching FRC LabVIEW.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2013 at 16:13.
  #3   Spotlight this post!  
Unread 01-02-2013, 16:23
eyeswideopened eyeswideopened is offline
Registered User
FRC #4557
 
Join Date: Jan 2013
Location: Connecticut
Posts: 13
eyeswideopened is an unknown quantity at this point
Re: General Labview Help

They are having me use a third attack 3 joystick to do the lifting arms and the shooting. They want me to make the paddle at the bottem control the throttle and then use the trigger to shoot the frisbee. (the throttle is for the chain drive which powers the frisbee thrower). They want buttons 6 and 7 to be the up and down for the lifting arms while climbing. I am not sure how to make 6 just motor up and 7 just motor down.
  #4   Spotlight this post!  
Unread 01-02-2013, 17:20
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: General Labview Help

Quote:
Originally Posted by eyeswideopened View Post
They want me to make the paddle at the bottom control the throttle
...
(the throttle is for the chain drive which powers the frisbee thrower)
This gets done the same way you use the regular joystick movement to control the drive motors. You're just taking the control from a different axis.
Here's an example, but change the axis 2(y) to axis 3 (throttle), and Joystick 1 becomes Joystick 3 or whichever joystick you name to control all this:


Quote:
and then use the trigger to shoot the frisbee.
That would be your pneumatics. So something like this (but change Joystick 1 to Joystick 3 again):



The compressor also needs code like this to run:


Quote:
They want buttons 6 and 7 to be the up and down for the lifting arms while climbing. I am not sure how to make 6 just motor up and 7 just motor down.
There's been a bunch of others asking how to do just this.
It does depend on what device you'll be using to control the arm motor (Spike or motor controller). But here's a general answer from somebody else that assumes a speed controller is being used:
http://www.chiefdelphi.com/forums/showpost.php?p=1121889&postcount=8
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2013 at 18:24.
  #5   Spotlight this post!  
Unread 01-02-2013, 18:20
eyeswideopened eyeswideopened is offline
Registered User
FRC #4557
 
Join Date: Jan 2013
Location: Connecticut
Posts: 13
eyeswideopened is an unknown quantity at this point
Re: General Labview Help

Thank you very much, I will try that stuff.
  #6   Spotlight this post!  
Unread 01-02-2013, 18:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: General Labview Help

If you have trouble finding or creating any of these icons just ask and one of us will help you locate what you need.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #7   Spotlight this post!  
Unread 01-02-2013, 19:07
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 254
BitTwiddler is on a distinguished road
Re: General Labview Help

Quote:
Originally Posted by eyeswideopened View Post
Thank you very much, I will try that stuff.
May I suggest you go visit Mark's team's website at:
http://team358.org/files/programming...2009-/LabVIEW/
This is an excellent resource that I often go to for ideas on how to program common tasks.
Try it.
  #8   Spotlight this post!  
Unread 02-02-2013, 12:57
eyeswideopened eyeswideopened is offline
Registered User
FRC #4557
 
Join Date: Jan 2013
Location: Connecticut
Posts: 13
eyeswideopened is an unknown quantity at this point
Re: General Labview Help

what are the "foward" and "reverse" blue boxes called? Thank you
  #9   Spotlight this post!  
Unread 02-02-2013, 13:57
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: General Labview Help

The easiest way to get those is sort of a trick.
You can always get the right type from the icon that needs it.

Hover your cursor over the Solenoid Set input node.
Right-click and choose Create -> Constant.

That'll get you one of those enumerated types blue boxes.
Copy and past that blue box to get the ones you need, then remove or disconnect the original from the Solenoid Set.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


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 02:27.

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