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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB input from 3d mouse

I have a 3D mouse and I would like to use its outputs in Labview similarly as with the "Connectivity" - "Input Device Control", mouse functions. 
I can't figure out how to read the mouse data. I've tried with VISA read and such, but I don't really understand how that works.

 

Any Idea how I can read from the 3D mouse?

 

I have installed the drivers from the manufacturer. 

 

Feel free to ask for more information about my problem

 

 

0 Kudos
Message 1 of 3
(2,565 Views)

A mouse is a 2D device.  A 3D mouse is ... a 3D device.  Another 3D device is ... a Joystick!  Maybe the 3D mouse uses Microsoft's DirectX protocols.  What happens if you run Acquire Input Data when your 3D mouse is connected?  You may have to specify Joystick.  You should also run DiagDx (the Microsoft DirectX Diagnostic routine and see if your 3D mouse shows up.

 

Now, if DiagDX shows the 3D mouse, there is a possibility that LabVIEW won't see it.  There is a bug flaw in the LabVIEW routine -- it stops enumerating DirectX devices after 8 or 9, and can refuse to acknowledge higher numbered multi-axis devices.  I've got a plea on the Idea Exchange here to ask NI to fix this, but not very many people have Kudo'ed (voted for) this Idea, so it hasn't (yet) been implemented.  If this flaw bytes you, consider Kudo-ing my Idea (and tell your friends).  

 

Bob Schor

0 Kudos
Message 2 of 3
(2,519 Views)

Thanks for your advice and input! I'll try it and post my results! 

0 Kudos
Message 3 of 3
(2,512 Views)