Example Code

Move Cursor with Slide Control on XY Graph in 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 example VI demonstrates how you can change the cursor's position in a XY Graph by using numeric sliding controls on the front panel.


Description
This code shows the functionality and use of property nodes by controlling and updating the position of a cursor on a graph with a slide control. It also uses an Event Structure to alternatively update the numeric sliders, or scrollbars, when the cursors' position is changed manually on the XY Graph by clicking on the cursor and dragging it.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Move Cursor with Slide Control LV2012 NI Verified.vi"
  3. Run the program
  4. Move the X and Y slide controls
  5. Observe the cursor moving in the graph

 

Additional Information or References

VI Block Diagram

 Move Cursor with Slide Control LV2012 NI Verified.png

 

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

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support

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