Go to Post And that's part of the game... The field is never reset! Muhahaha! - nighterfighter [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 03-02-2009, 16:06
cvxdes cvxdes is offline
Registered User
FRC #0061
 
Join Date: Feb 2009
Location: Milford MA
Posts: 7
cvxdes is an unknown quantity at this point
Driver station only regognizes USB 1 and 2

So on our bot, we decided to have 4 joysticks. 2 for the driver, in tank mode, and 2 for the person handling the ball mechanism. Driver gets USB1 and USB2, and ball handler gets USB3 and USB4.

I spent hours today trying to figure out why when I go all the way to -1 on the USB3 and 4 joysticks, nothing happened.. Then I just set up the motor VI with a constant of -1, and it ran. Then I hooked up the joystick indicator to a display, and realized that the joystick wasn't talking to the program.

I tried too many things to list in order to get it work. Several reboots, switching around joysticks, and can't find a way around it.

Anybody have any ideas on why it's doing that? I'm pretty much stumped.
  #2   Spotlight this post!  
Unread 03-02-2009, 16:07
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: 325
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: Driver station only regognizes USB 1 and 2

You turned off the driver station before you plugged in the joysticks right? You cant plug them in after it already has power. Hope that helps
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #3   Spotlight this post!  
Unread 03-02-2009, 16:08
cvxdes cvxdes is offline
Registered User
FRC #0061
 
Join Date: Feb 2009
Location: Milford MA
Posts: 7
cvxdes is an unknown quantity at this point
Re: Driver station only regognizes USB 1 and 2

Yep, I had all 4 plugged in, cut power for 10 minutes to take a lunch break, came back, and the same thing happened.
  #4   Spotlight this post!  
Unread 04-02-2009, 10:06
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,855
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: Driver station only regognizes USB 1 and 2

Did you swap the joysticks around to be sure it isn't a joystick failure?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 04-02-2009, 10:28
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,535
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Driver station only regognizes USB 1 and 2

If you'd like to post your code, I'm sure someone will take a look at it. I suspect that's probably where the issue is.
  #6   Spotlight this post!  
Unread 04-02-2009, 20:17
cvxdes cvxdes is offline
Registered User
FRC #0061
 
Join Date: Feb 2009
Location: Milford MA
Posts: 7
cvxdes is an unknown quantity at this point
Re: Driver station only regognizes USB 1 and 2

Quote:
Originally Posted by Mark McLeod View Post
Did you swap the joysticks around to be sure it isn't a joystick failure?
I did swap them, and had the same issue. I even plugged them into the computer to verify that they work... they do.

Quote:
Originally Posted by Tom Line View Post
If you'd like to post your code, I'm sure someone will take a look at it. I suspect that's probably where the issue is.
Not really sure how to share labview code, in php I'd just copy and paste.. so I'll screenshot it, I guess. Don't mind the random uncompleted code, I'm attempting to implement traction control and figure how to make buttons execute code. Got to tackle one thing at a time, though.
When I attempt to use USB 3 and 4, the following is what the numeric indicators read:
Numeric 5: always zero
Numeric 6: always zero

http://img520.imageshack.us/img520/3521/labviewmo6.png
  #7   Spotlight this post!  
Unread 04-02-2009, 20:39
p00rleno p00rleno is offline
Team Advisor & Former Team Leader
AKA: Andy
FRC #2590 (Nemesis)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: NJ
Posts: 29
p00rleno is on a distinguished road
Re: Driver station only regognizes USB 1 and 2

You could always try re-imaging the DS with the .BIN file they gave, it might just not have updated properly.
  #8   Spotlight this post!  
Unread 04-02-2009, 21:37
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Driver station only regognizes USB 1 and 2

Try running the "Joystick Input Example" (unmodified) and test each joystick with known good code.

If you get Joystick 3 to respond, then the problem is in your code (maybe you are not opening the joystick?).

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #9   Spotlight this post!  
Unread 04-02-2009, 21:46
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,855
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: Driver station only regognizes USB 1 and 2

The code seems pretty straight forward.
To eliminate it as a possible source I'd try a default template switched to use USB3 then USB4, then post your results on the FIRST forum where they can make a determination if the USB ports are bad.

P.S. What Mike said
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #10   Spotlight this post!  
Unread 04-02-2009, 22:16
cvxdes cvxdes is offline
Registered User
FRC #0061
 
Join Date: Feb 2009
Location: Milford MA
Posts: 7
cvxdes is an unknown quantity at this point
Re: Driver station only regognizes USB 1 and 2

Quote:
Originally Posted by Mike Betts View Post
Try running the "Joystick Input Example" (unmodified) and test each joystick with known good code.

If you get Joystick 3 to respond, then the problem is in your code (maybe you are not opening the joystick?).

Regards,

Mike
Actually, this was one of the first things I tried.

Quote:
Originally Posted by Mark McLeod View Post
The code seems pretty straight forward.
To eliminate it as a possible source I'd try a default template switched to use USB3 then USB4, then post your results on the FIRST forum where they can make a determination if the USB ports are bad.

P.S. What Mike said
Tried doing that too, but I'll have to try the posting on the FIRST forums part.

Quote:
Originally Posted by p00rleno View Post
You could always try re-imaging the DS with the .BIN file they gave, it might just not have updated properly.
I'll try that tommorow. I don't know if we updated the driver station when we updated the cRIO, or if that even matters, but hopefully it'll give us some results.
  #11   Spotlight this post!  
Unread 05-02-2009, 01:27
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 772
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Driver station only regognizes USB 1 and 2

Quote:
Originally Posted by cvxdes View Post
I did swap them, and had the same issue. I even plugged them into the computer to verify that they work... they do.



Not really sure how to share labview code, in php I'd just copy and paste.. so I'll screenshot it, I guess. Don't mind the random uncompleted code, I'm attempting to implement traction control and figure how to make buttons execute code. Got to tackle one thing at a time, though.
When I attempt to use USB 3 and 4, the following is what the numeric indicators read:
Numeric 5: always zero
Numeric 6: always zero

http://img520.imageshack.us/img520/3521/labviewmo6.png
Not exactly on topic, but i see that you are using 12 Boolean indicators to show the different buttons on the joystick. Might i suggest just creating an indicator on the output to the "Get Raw" VI (the pink wire), and it will be much less cluttered and you can still see each separate button on teh frontpanel.
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
  #12   Spotlight this post!  
Unread 05-02-2009, 08:33
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,535
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Driver station only regognizes USB 1 and 2

Out of curiosity, are your joysticks already opened in the begin.vi?

You'll probably have this issue if you reopen those same joysticks again.
  #13   Spotlight this post!  
Unread 05-02-2009, 10:57
cvxdes cvxdes is offline
Registered User
FRC #0061
 
Join Date: Feb 2009
Location: Milford MA
Posts: 7
cvxdes is an unknown quantity at this point
Re: Driver station only regognizes USB 1 and 2

Quote:
Originally Posted by Tom Line View Post
Out of curiosity, are your joysticks already opened in the begin.vi?

You'll probably have this issue if you reopen those same joysticks again.
I actually haven't looked into any other vi's yet, just the sub-vi's. I've just been messing with main.vi. I'm not sure right now, I don't have access to labview right now, but I think begin.vi is only in the advanced framework?
Speaking of which, I tried the advanced framework, and the joysticks still do not work.
  #14   Spotlight this post!  
Unread 05-02-2009, 12:33
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,535
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Driver station only regognizes USB 1 and 2

Sorry, my mistake, I didn't realize you weren't using the advanced framework. That's the only one I've been spending time with.
  #15   Spotlight this post!  
Unread 05-02-2009, 14:40
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Driver station only regognizes USB 1 and 2

We just tested three joysticks with the basic framework, and all worked. If a simplified example will not work after a reboot, I'd diagnose it as a HW problem.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver Station S.O.S. M. Gildner Electrical 15 28-11-2009 19:35
Need Driver Station dekker120 FRC Control System 2 02-02-2009 12:59
driver station and cRIO firmware update help asianfez123 FRC Control System 1 16-01-2009 02:34
[FTC]: FTC Controller Station Connectivity (Bluetooth and USB) Issue jbbjjbt FIRST Tech Challenge 6 05-11-2008 11:49


All times are GMT -5. The time now is 21:47.

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