Quote:
Originally Posted by EricWilliams
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