LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How might I implement a rotary encoder knob?

Hi all,

 

I am currently using the 6.0 version, is there a work-around to use mouse-wheel-scrolls?

 

-T.

0 Kudos
Message 11 of 14
(1,341 Views)

Hello TurboMetrologist,

 

I am not sure if there is a workaround for CVI 6 since this is no longer support and the UIR changed formats in CVI 7.1. You can take a look at the code and try and implement it in CVI 6 by creating a new UIR, though some commands may not be available in CVI 6 that are used in a later version. Have a great day!

 

Best Regards,

 

Adam G 

National Instruments
Applications Engineer
0 Kudos
Message 12 of 14
(1,300 Views)

Turbo:

 

CVI 6.0 doesn't have built-in support for the mouse wheel, but you can use InstallWinMsgCallback () to capture Windows message WM_MOUSEWHEEL.

 

Look at the attached sample (developed in CVI 6.0), which just has a numeric dial which can be controlled by the mouse wheel.

 

This sample is based on several I found on the forum and on the toolbox sample that shipped with CVI 6.0, ..\CVI\samples\toolbox\msgdemo.prj

Message 13 of 14
(1,242 Views)

Thanks! That was an excellent example.

0 Kudos
Message 14 of 14
(1,204 Views)