Thread: Joystick 2
View Single Post
  #2   Spotlight this post!  
Unread 23-02-2010, 11:32
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

Quote:
Originally Posted by EricWilliams View Post

Probing the wire output of the Joystick's Open.vi shows a USB1 device channel, even though USB2 is clearly wired to the input.

Suggestions?
There is nothing must going on in the Joystick Open.vi
It just copies what is wired in into a cluster that just contains the device channel enum.

If you open a blank VI (without a project) Close your robot project and open a blank VI that will just run on your desk top not the cRIO.
Place a Joystick Open.vi in it and create an input control and an output indicator.
Run and see if you see the same results USB2 in but USB1 out. You can do multiple copies (4) of Joystick Open and try all 4 USB at the same time.

If you see the same results then I think the problem is with the TypeDef of the enum (USB1, USB2, USB3, USB4) DeviceEnum.ctl
Check to see if it is still connected to the type def.
Is the constant enum that you are feeding into the Open VI also still connected to the SAME type def

Are the items in the type def still
USB1 = 0
USB2 = 1
USB3 = 2
USB4 = 3

Plus is everything still a U16 data type?

These are the only things that I can think of that cause the Open VI to output USB1 even though USB2 is clearly wired to the input
Attached Thumbnails
Click image for larger version

Name:	joystickOpen.png
Views:	33
Size:	2.0 KB
ID:	8786  
__________________
Omar

Last edited by Omar : 23-02-2010 at 11:34.
Reply With Quote