Go to Post I, for one, refused to be railroaded down this train of thought so easily! Geeze, one lousy game hint just builds up steam for any old picture to come through and go two pages in a matter of hours. - Billfred [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 24-02-2010, 12:01
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Joystick 2

Could this also be related to that Joystick list on the DriverStation application? (I think it's in the Diagnostics tab)

You can select one of the USB devices and drag it up or down and re-assign which joystick is which. I've often wondered how this gets implemented since it overrides the USB assignments made in the Begin VI.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2010, 15:05
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Joystick 2

The JoySticks are assign USB number based on the serial number of each USB Joystick. Windows remembers which actual phyical joystick was assigned which USB# based on the serial number of the joystick.

So when you drag the joysticks around in the Diagnostics tab you are tell the system that you want the joystick with serial number XXXXXXXX to be USB1 and the joystick with serial number YYYYYYY to be USB2. So when in the Begin.VI you know which phyical joystick you are opening

You do not need to know the serial number the Diagnostics tab takes care of that.
__________________
Omar
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2010, 20:06
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,752
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: Joystick 2

USB joysticks can have serial numbers, but due to cost issues, they rarely do. Instead, the vendor and product info identifies them, with the order they are identified on the bus being the id for identical joysticks.

This doesn't really affect what you are saying except that there are corner cases which will not work as you might expect -- for example, unplug the hub, swap two identical joysticks within the hub, replug the hub, and the computer can't tell that anything changed. If they had serial numbers, the joystick values would follow the serial numbers. Without serial numbers, they are tied to the port.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 25-02-2010, 09:54
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Joystick 2

I wish my test rack that has 24 USB power supplies worked that way.
Based on the USB port instead of the serial number.

Every time the CAL shop calibrates the supplies and does not put them back a the correct spot it screws up the addressing.
__________________
Omar
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick Danny McC Control System 2 03-02-2007 18:21
1 joystick or 2? ChrisMcK2186 Control System 18 19-01-2007 23:42
joystick ? _GP_ General Forum 1 26-02-2004 23:10
Joystick cammie825 Technical Discussion 1 15-01-2003 10:48
No Joystick archiver 2001 2 24-06-2002 01:14


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

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