Example Code

Mapping Mouse Co-ordinates to Object in 3D Picture Control Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI maps the current location of the mouse cursor to a sphere in the 3D picture control.

 
Description

The input cluster of the mouse co-ordinates could be replaced with an acquisition device with sensory input data.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI, move your mouse, you can see a 3D picture control maps the current location of the cursor.

 

Additional Information or References
VI Snippet

007.png 

**This document has been updated to meet the current required format for the NI Code Exchange.**

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.