Jump to content

How to recognize two Joysticks


CTR

Recommended Posts

Hi,

I am programming an application in LabVIEW with a type of joystick that is like two joysticks like this example:

In order to work, I have to connect the devide index of both of my joystick with two vi Initialize Joystick.vi. Like the explanation on this web  page:  http://digital.ni.com/public.nsf/allkb/CA411647F224787B86256DD000669EFE

Here is the text: Call Initialize Joystick.vi. In this VI, use the device index input to identify the device to be read from. This is a numeric value that corresponds to the device number in the operating system. Use the corresponding Initialize VI if doing this for a different input device, i.e. Initialize Mouse.vi

I would like to know where do I find the device number in the operating system.

In my case I have found that I have to use 1 and 2. This number might change, on a different computer or if I reboot...

 

Can someone help me?

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.