Go to Post We are behind you 100% (more if needed)! - Clem1640 [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 17-01-2013, 17:29
nickhilgupta's Avatar
nickhilgupta nickhilgupta is offline
Registered User
FRC #4674
 
Join Date: Jan 2013
Location: Bemidji Mn
Posts: 13
nickhilgupta is an unknown quantity at this point
Basic help with labview in Begin VI

We are a new team in FRC and it is up to me to do the programming in labview. can someone help me get started. I want to get two joysticks. connect each one to one of the motors. just to get started. so i can connect it to my robot and maybe, just use the joysticks to move my robot. Please you really simple language to explain. Thanks in advanced.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2013, 18:22
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Basic help with labview in Begin VI

Begin.vi
http://i.imgur.com/95HGp.png

Teleop.vi
http://i.imgur.com/bd4uG.png


Above are the links to the code for what is called "Tank Drive" (two joysticks controlling the robot at once, one for each side of the drive train).

You will need to discuss with your electrical team which PWM number they have used for the motors controlling your drive train, and what kind of speed controllers they used. Those two settings must be changed in the Begin.vi where the motors are "opened."

Notice in the teleop.vi that all I have done is add another joystick and change the robot drive VI to "Tank" instead of "Arcade."

If you have other questions, please ask.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2013, 18:54
nickhilgupta's Avatar
nickhilgupta nickhilgupta is offline
Registered User
FRC #4674
 
Join Date: Jan 2013
Location: Bemidji Mn
Posts: 13
nickhilgupta is an unknown quantity at this point
Re: Basic help with labview in Begin VI

I will ask if i have questions. Thanks. you were really helpful
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2013, 15:57
sandbag747 sandbag747 is offline
Registered User
FTC #3603 (Reed City Cyber Coyotes)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Reed City
Posts: 22
sandbag747 is an unknown quantity at this point
Re: Basic help with labview in Begin VI

If you go to frcmastery.com you can find a bunch of tutorials that got me started pretty well
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2013, 23:59
nickhilgupta's Avatar
nickhilgupta nickhilgupta is offline
Registered User
FRC #4674
 
Join Date: Jan 2013
Location: Bemidji Mn
Posts: 13
nickhilgupta is an unknown quantity at this point
Re: Basic help with labview in Begin VI

Thanks. that looks like a nice website.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-02-2016, 04:22
cartwrig cartwrig is offline
Registered User
FRC #1720
 
Join Date: Jan 2015
Location: Muncie, IN
Posts: 10
cartwrig is an unknown quantity at this point
Re: Basic help with labview in Begin VI

Hmmm...anyone know where http://www.frcmastery.com went?

Thanks,
- Rob
Programming Mentor, that's still trying to learn!
Reply With Quote
  #7   Spotlight this post!  
Unread 29-02-2016, 15:41
JeffB JeffB is offline
Registered User
FRC #5052 (RoboLobos)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2014
Location: Austin
Posts: 67
JeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to behold
Re: Basic help with labview in Begin VI

It looks like it's up now. It might have been down for a brief period.

What are you running into that you'd like to have us take a look at?
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2017, 17:52
tiernan12992's Avatar
tiernan12992 tiernan12992 is offline
LabVIEW Coding Captain and Weirdo
AKA: Tiernan Pierce
FRC #4490 (TechRaiders)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Arkansas
Posts: 14
tiernan12992 is an unknown quantity at this point
Re: Basic help with labview in Begin VI

Quote:
Originally Posted by propionate View Post
Begin.vi
http://i.imgur.com/95HGp.png

Teleop.vi
http://i.imgur.com/bd4uG.png


Above are the links to the code for what is called "Tank Drive" (two joysticks controlling the robot at once, one for each side of the drive train).

You will need to discuss with your electrical team which PWM number they have used for the motors controlling your drive train, and what kind of speed controllers they used. Those two settings must be changed in the Begin.vi where the motors are "opened."

Notice in the teleop.vi that all I have done is add another joystick and change the robot drive VI to "Tank" instead of "Arcade."

If you have other questions, please ask.
Excuse me, but where do you get those terminals in the block diagram that are axis 2 (y)? I am searching everywhere and can't seem to find them.

For clarification, I am also a very new LabVIEW coder and still trying to figure things like that out. I just don't entirely know where to look or what the name of those things are.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2017, 18:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,919
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: Basic help with labview in Begin VI

FRC LabVIEW has changed a little bit over the years. Those "Axis 2 (y)" are no longer used in order to make it a bit more generic and accommodate different joysticks like xBox controllers that use different names for things.

The current style looks like these examples:
http://www.team358.org/files/program....php#TankDrive
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 18-01-2017, 18:58
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Texas
Posts: 64
mshafer1 is an unknown quantity at this point
Re: Basic help with labview in Begin VI

There is also a wealth of information here:
http://forums.ni.com/t5/FIRST-Roboti...e/ta-p/3528790

Please feel free to Personal Message or email me if you have any difficulties.
Reply With Quote
  #11   Spotlight this post!  
Unread 18-01-2017, 19:12
tiernan12992's Avatar
tiernan12992 tiernan12992 is offline
LabVIEW Coding Captain and Weirdo
AKA: Tiernan Pierce
FRC #4490 (TechRaiders)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Arkansas
Posts: 14
tiernan12992 is an unknown quantity at this point
Re: Basic help with labview in Begin VI

Appreciated you two. Apologies for reviving a rather dead thread, haha. I didn't quite read the date on the last update to it.

And I will be sure to contact you should the need arise, Mr. Shafer. Thank you once again.
__________________
Nothing makes an engineer more productive than the "Last Minute"

"I will only work for 50 rubles." - Quenten, one of our other coders (extraordinaire)

"I guess I'm the help deadline. Please call NEVER." - Codi, our other coder. (It is funneh joke because Codi iz coder)
Reply With Quote
  #12   Spotlight this post!  
Unread 18-01-2017, 20:33
Hess1113's Avatar
Hess1113 Hess1113 is offline
Grab a computer and code it up!
AKA: Christopher Hess
FRC #0291 (Creativity In Action)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Erie, PA
Posts: 23
Hess1113 is an unknown quantity at this point
Wink Re: Basic help with labview in Begin VI

I know I usually use default code and edit it to my teams need. I used a lot of tutorials and example code. If you need any help feel free to direct message me because i also had teams help me via skype or email.
__________________
Christopher Hess
Co-Lead Programmer
Webmaster
FRC-Team 291 CIA
www.team291.com
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 13:14.

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