LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get the mouse scroll wheel values in linux

Hi,

 

I am porting some code to Linux and am having trouble getting the mouse scroll button values.  I'm using the Acquire Input Data.vi to get the axis info.  In windows it gets the Horz, Vert and Scrolling values no problem.  In Linux it is only able to get the Horz and Vert values, nothing for the Scrolling.  Has anyone come accross this problem and found a workaround?

 

This vi seems to do a library function call to a Labview dll to get the info.  I have seen other examples where you can call a Windows dll directly to get the mouse values, is there something similar in Linux?

 

Also, the mouse scroll wheel is functioning fine in the Linux environment, so its not the drivers.

0 Kudos
Message 1 of 5
(3,125 Views)

Hello epk,

 

When you say that the scroll value isn't being returned, is it giving you a zero or a "null" field (only two elements are displayed) for the output?

 

I'm currently looking into reasons this might happen, but any additional information you can provide on your setup would be extremely useful, including:

 

-Linux Kernel build/release version

-LabVIEW version

-Mouse model and drivers in use, if any.

 

Additionally, is the scroll wheel working as expected within the LabVIEW development environment, even if the input is not being recognized by the VI?

 

Regards,

 

Tom L.
0 Kudos
Message 2 of 5
(3,103 Views)

Tom,

 

It is giving me a zero as the 3rd element in the axis info array.  The horzontal, vertical position and all 3 button clicks are being reported by the vi, just not scroll.

 

Sorry, should have included this orignially:

It is working in:

Windows XP, Labview 2011 (no SP)

 

Not working in:

OpenSuse 11.1 (x86_64), kernel 2.6.27.23-0.1-default, Labview 2011 SP1

I know it's not supported but I compiled the application and was testing the runtime engine on:

Ubuntu 9.04, kernel 2.6.28-16-generic

with the same results.  The app worked, as did the h/v position and button clicks, but not the scroll.

 

The mouse scroll is functioning in both the above Linux environments with several different mice, just not being reported by "Acquire Input Data.vi"

 

Cheers,

  Ed.

0 Kudos
Message 3 of 5
(3,095 Views)

Hello Ed,

 

I just wanted to let you know that I've validated this behavior using a setup similar to yours and have reported it to our developers for further investigation (CAR ID # 361755.)  In the meantime; I would suggest looking into alternate mouse protocols/kernel configurations.  I'm not aware of an openSUSE DLL that reports the scroll wheel value, but that may also be worth looking into.  In any case, thank you for bringing this to our attention.

 

Also, a search of openSUSE's forums (http://forums.opensuse.org/ ) results in several hundred threads related to behavior similar to this in different kernel releases, and in some cases it looks like it may be application-specific.  I haven't yet had the time to sift through the bulk of the information there, but it looks like changing the mouse protocol has worked in some cases.

 

Regards,

Tom L.
0 Kudos
Message 4 of 5
(3,080 Views)

CAR 361755 discussed in this thread has been fixed in LabVIEW 2013. For a more complete list of bugs fixed in LabVIEW 2013, check the LabVIEW 2013 Bug Fixes. You can download an evaluation copy of LabVIEW 2013 at http://www.ni.com/trylabview/ or if you have an earlier version of LabVIEW installed and an active SSP subscription, you will be able to download the latest version of LabVIEW through NI Update Service.

 

Jeff Peacock

 

Product Support Engineer | LabVIEW R&D | National Instruments

0 Kudos
Message 5 of 5
(3,004 Views)