Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Dynamically registering events to track mouse moves

1 ratings | 4.00 out of 5
Print

Downloads

Filename: 2665.zip
Requirements: View

Suppose you wanted to create a VI in which the user is able to move an image around the front panel. For this, you need to track how the user moves the mouse around the front panel.

Attached you will find 2 VIs that perform this same task, but one is a lot more efficient because it uses dynamic events to set the VI to look for mouse moves only when it needs to, only when the user wants to move the image.

Look at the while loop iteration counter to see how in the VI that does not use dynamic events, events are fired continously when the mouse is being moved.

Requirements


Filename: 2665.zip

Software Requirements


Application Software: LabVIEW Full Development System 7.0
Language(s): LabVIEW

 
1 ratings | 4.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).