LabVIEW programming skills: how to detect the mouse wheel

Publisher:以泉换泉Latest update time:2014-11-05 Source: ck365Keywords:LABVIEW Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Button information------------Returns which mouse button was pressed: Button 1--》left mouse button, Button 2--》right mouse button, Button 3--》mouse wheel button.

Axis Information ------ Returns the current horizontal and vertical position of the mouse. The function can select absolute coordinates, relative to the computer screen, or relative coordinates, relative to the front panel client area of ​​the VI.

The axis information also returns the scroll information. After actual testing, I found that whenever the mouse wheel is rolled up, +120 is returned. When the wheel is rolled down, -120 is returned. Based on this, we can determine the state of the wheel.

Some netizens hope to use the scroll wheel to control the value of a digital control. Below I use the above function to make a simple example program.

 

文章内容结束
Keywords:LABVIEW Reference address:LabVIEW programming skills: how to detect the mouse wheel

Previous article:LabVIEW Nugget: Use the Concatenate String Function
Next article:LabVIEW programming skills: how to selectively display multiple waveforms 

Recommended ReadingLatest update time:2024-11-16 16:36

Design of a Multi-channel Temperature Measurement System Based on LabVIEW
  Abstract: In order to measure the temperature of multiple points in various application environments, a multi-channel temperature measurement system based on LabVIEW is designed. The system is based on the LabVIEW graphical development environment, uses RTD as a temperature sensor, continuously collects sensor signa
[Test Measurement]
Design of a Multi-channel Temperature Measurement System Based on LabVIEW
Top 5 Mistakes LabVIEW Newbies Make
 While NI LabVIEW software has long helped engineers and scientists quickly develop functional measurement and control applications, not all new users follow LabVIEW programming best practices. LabVIEW graphical programming is unique because it is immediately apparent whether or not you are following coding best practi
[Test Measurement]
Top 5 Mistakes LabVIEW Newbies Make
NI LabVIEW Develops Real-Time Control System for World's Largest Telescope
introduction The European Southern Observatory (ESO) is an astronomical research institute supported by 13 European countries. We have developed and deployed some of the most advanced telescopes in the world. We currently have three sites in the Chilean Andes: La Silla, Paranal and Chajnantor. We are always using in
[Test Measurement]
NI LabVIEW Develops Real-Time Control System for World's Largest Telescope
LabVIEW Programming Tips - How to Implement Aggregate Functions
   LabVIEW 's array operation function is very powerful. In addition to the functions provided in the array function palette, the functions in the signal processing function palette are actually also operating arrays, but they do not provide direct set functions. In MathScript, LabVIEW provides several set-related fun
[Test Measurement]
LabVIEW Programming Tips - How to Implement Aggregate Functions
Research on a Memory Detection System Based on LabVIEW
During the operation of electronic equipment, the failure or failure of memory will not only lead to economic losses, but also may lead to catastrophic consequences. Therefore, memory testing has become an important issue in today's world, and memory is playing a very important role in military equipment. At present
[Test Measurement]
Research on a Memory Detection System Based on LabVIEW
Design of Multi-purpose Virtual Voltmeter Based on LabVIEW 8.2
O Introduction Virtual instrument is a new type of instrument developed with the development of computer technology, electronic measurement technology and communication technology. It makes full use of the powerful data processing and display capabilities of computer systems, uses software to complet
[Test Measurement]
Labview implements pulse wave modulation (PPM)
Pulse Width Modulation Generate a sine signal and get the offset of its amplitude input to a square wave signal. Since the offset of the square wave signal contains the information of the sine signal , the waveform can be restored by triggering the rising or falling edge of the square wave signal. Achieve results
[Test Measurement]
Labview implements pulse wave modulation (PPM)
Optimizing Signal Processing Performance in Multicore Environments with LabVIEW
Programming Challenges in a Multi-Core Processor Environment In the more than 40 years since Moore's Law came into being, people have seen the semiconductor chip manufacturing process level improve at a dizzying speed. The highest frequency of Intel microprocessors has even exceeded 4G. Although the increas
[Test Measurement]
Optimizing Signal Processing Performance in Multicore Environments with LabVIEW
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号