Go to Post I normally prefer my speed controllers to brake, rather then break. - Joe Ross [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 14-01-2012, 19:05
EagleBotBC EagleBotBC is offline
Registered User
FRC #2838
 
Join Date: Jan 2012
Location: Chesterfield, MO
Posts: 3
EagleBotBC is an unknown quantity at this point
Multiple Joystick Help

I am trying to figure out tank drive for our robot and whenever I try to open a new joystick on Begin.vi it changes the USB port on the 1st joystick as well. I have tried changing the name of the joystick, but it changes both of them when I do. Please help me!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2012, 19:46
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Multiple Joystick Help

what you have to do is open two under begin vi, with a different name for each. Under teleop, you use two get refnames (one for each).
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2012, 00:08
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Multiple Joystick Help

It sounds like you are changing the the values on the front panel of the joystick open vi, rather then wiring a constant into the joystick open input in begin.vi.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2012, 14:26
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Multiple Joystick Help

All you need to do to configure tank drive is open teleop.vi, change out the Arcade drive block for Tank drive (WPI Library>Robot>Tank Drive), and wire in the second joystick.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2012, 10:48
waddell waddell is offline
Registered User
FRC #4205 (RoboCubs)
Team Role: Mechanical
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sedro Woolley
Posts: 20
waddell is an unknown quantity at this point
Re: Multiple Joystick Help

DominckC,
So, for a total noob with NO programming experience, I'm the mechanical coach, what would the diagrams look like?
I found the Tank Drive block.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2012, 21:55
waddell waddell is offline
Registered User
FRC #4205 (RoboCubs)
Team Role: Mechanical
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sedro Woolley
Posts: 20
waddell is an unknown quantity at this point
Re: Multiple Joystick Help

Anyone awake?
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2012, 22:27
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,795
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: Multiple Joystick Help

Like this:



Some other examples are here
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 17-01-2012, 00:56
waddell waddell is offline
Registered User
FRC #4205 (RoboCubs)
Team Role: Mechanical
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sedro Woolley
Posts: 20
waddell is an unknown quantity at this point
Re: Multiple Joystick Help

Thanks Mark,
If we get snowed in tomorrow I'll give it a try then.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-01-2012, 01:00
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Multiple Joystick Help

Quote:
Originally Posted by Joe Ross View Post
It sounds like you are changing the the values on the front panel of the joystick open vi, rather then wiring a constant into the joystick open input in begin.vi.
Quoted for emphasis. Sounds like the OP's problem.

Mark, your section for the Begin VI is missing a pair of joystick open and set joystick reference VIs.
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
Reply With Quote
  #10   Spotlight this post!  
Unread 17-01-2012, 08:02
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,795
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: Multiple Joystick Help

Quote:
Originally Posted by RoboMaster View Post
Mark, your section for the Begin VI is missing a pair of joystick open and set joystick reference VIs.
That's because it's from a series of examples. A previous example describes the Joystick open.
I use the series for teaching and the students are expected to learn to apply prior examples in building block fashion to subsequent examples.
Also, for brevity's sake subsequent examples don't repeat all the prior examples. Otherwise it gets very unwieldy in later compound examples and loses the independent point each is trying to make.

It's a teaching style choice.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-01-2012 at 08:43.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-01-2012, 16:29
EagleBotBC EagleBotBC is offline
Registered User
FRC #2838
 
Join Date: Jan 2012
Location: Chesterfield, MO
Posts: 3
EagleBotBC is an unknown quantity at this point
Re: Multiple Joystick Help

Quote:
Originally Posted by tilky View Post
what you have to do is open two under begin vi, with a different name for each. Under teleop, you use two get refnames (one for each).
My problem is in the begin.vi. When I open them the refnames change simultaneously, so that when I change one the other changes as well.
Reply With Quote
  #12   Spotlight this post!  
Unread 17-01-2012, 16:54
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,795
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: Multiple Joystick Help

Did you create the new joystick from scratch or copy it somehow?

Do you know how to get the wirespool cursor when you hover over the name node, right-click and choose Create -> Constant?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #13   Spotlight this post!  
Unread 17-01-2012, 17:05
EagleBotBC EagleBotBC is offline
Registered User
FRC #2838
 
Join Date: Jan 2012
Location: Chesterfield, MO
Posts: 3
EagleBotBC is an unknown quantity at this point
Re: Multiple Joystick Help

Quote:
Originally Posted by Mark McLeod View Post
Did you create the new joystick from scratch or copy it somehow?

Do you know how to get the wirespool cursor when you hover over the name node, right-click and choose Create -> Constant?
At first I was trying to copy and paste, but then once I created it from scratch they still seemed to be linked. I have tried Create -> Constant as well.
Reply With Quote
  #14   Spotlight this post!  
Unread 17-01-2012, 22:50
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: Multiple Joystick Help

Quote:
Originally Posted by EagleBotBC View Post
My problem is in the begin.vi. When I open them the refnames change simultaneously, so that when I change one the other changes as well.
What exactly do you mean by "open them"? It might help to show us your code.
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 09:31.

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