From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-04-2014 11:14 PM
i don't understant the id depends on what, is it The sys of exploitation used( windows 7 , 8 , xp) or the port used or the computer.
when i use a joystick with windows 7 the id is 0
when i use it with windows 8 i got 5 ,but when i restart the computer it become 3 using the same port
when i use it with windows xp i got 3 with one computer and 0 with an other one.
so
Solved! Go to Solution.
06-05-2014 02:05 AM
achfire,
The joystick device name should be the same on every computer.
To get the ID from the device name, search through all detected joysticks until the device name matches.
Here is a screenshot of how to do this:
This VI is not included with LabVIEW, so you'll have to code it yourself.
06-05-2014 01:33 PM
i did it,but i get false ,i don't know why even if i see that names are the same
06-05-2014 06:56 PM
What is the device name of your joystick? Have you tried using hilight execution mode to debug your program? Alternatively, you could check the number of buttons and axes matches instead of the device name.
06-05-2014 06:59 PM
yes i used hilight execution mode to debug my program,but i noticed that the name is the same but i get F ,i'll try ur suggestion
06-05-2014 10:02 PM
Are you abosultely sure your strings are indentical? Your code looks like it should work.
I would temporarily add an indicator between the "Query Input Devices.vi" and your for loop, run the VI once, then copy and paste whatever your device name is from the array indicator to the "Joystick Name" string control just to be sure. (Then you can get rid of the indicator.)
06-07-2014 12:02 PM - edited 06-07-2014 12:04 PM
thanks a lot my friends.
thanks to you i figured how to avoid this id problem with my joystick and my ruddep pedals.
here is how it works,who knows maybe someone sill need it in the futur