Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to identify multiple mouse devices

Hello,

I am trying to hook multiple mouse devices using USB and Bleutooth. and I want to identify which botton on which device is pressed.

But the system is taking the same input from all the devices with the device id: Mouse and identifying all hardware as 1 same device...

 

How can i seperate each device ID and get the corresponding button clicks?

 

Thank you for any help.

-------
Fadi
0 Kudos
Message 1 of 6
(4,232 Views)

Fadi,

 

i am not aware that the OS (i assume Windows XP or Vista) distinguish between the mice. I just made a simple test and connected two mice to my PC. Both mice were able to move the mousepointer at the same time without any difference: so moving mouse1 from left to right and mouse2 from right to left with the same speed, the mouspointer was stationary (what i expected).

Taking a look into the device manager brought up both mice without any possible distinction which one was mouse1 and which mouse2.....this is possibly due to both mice being Microsoft mice. Maybe you have a chance if the mice are from different vendors and you are using dedicated drivers for each mouse (don't know if this is possible though).

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 6
(4,211 Views)

If you want the devices to remain as system pointer devices, I don't think you can do this.

 

The OS has a single event queue for mouse movements and AFAIK there's no device-identifying information in there.

 

Regards

 

Shane.

0 Kudos
Message 3 of 6
(4,203 Views)

Thank you for your responses,

 

Actually All i care about is to identify which mouse has been clicked.I do not really care about the position of the pointer..

 

and I was trying trying to use some kind of mapping software that will convert each mouse klick into a keystroke (assigned keyboard keys), but it is not functioning with labview.. 😞

 

Any other clue  for making a remote control  frontpanel switch?

 

Thanks

-------
Fadi
0 Kudos
Message 4 of 6
(4,182 Views)

I have used the example of the mousepointer in order to elaborate my thoughts: The OS itself does not provide any functionality to differ between several mice. And if this is true (if i am wrong, please could someone correct?), you have no chance with this regardless of the used ADE. So it is no "fault" of LabVIEW.

 

Which brings me to another thought: Having more than a single source for UI control is most often very...disturbing. I am thinking of remote access using VNC where some local guy is moving the mouse around just to anger the remote user (happens from time to time...).

 

So i am asking myself: Why do you need "remote frontpanel switch"? If you need remote access, you can use Remote Panel or Webservices.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 6
(4,154 Views)

Hello,

 

the idea is to remote control the front panel with just a switch not to have another PC  or another front panel and not to have expensive wireless DAQ.

so this is what i am trying to achive in a very cheap way 😉

 

Thanks

-------
Fadi
0 Kudos
Message 6 of 6
(4,147 Views)