Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel Drag-and-Drop Control

This example is based on the following linked example:

Moving Front Panel Controls/Indicators With Mouse While VI Is Running

Description:

In addition to allowing the control to be moved, this example compares the bounding box positions of two different objects and changes a boolean value when the bounding box of the smaller object is completely within the bounding box of the larger object.

In this case, an LED indicator becomes active when a paper ball is placed within a trash can. The paper ball and trash can are a custom boolean control and picture ring, respectively.

Instructions:

  1. Run the VI.
  2. Click and drag the paper ball over the trash can.
    • The "In can?" LED will become active.
  3. Release the mouse button to place the paper ball.

paper_to_trash_control.png

Caleb Harris

National Instruments | Mechanical Engineer | http://www.ni.com/support
Contributors