Example Code

Distribute Large TDMS Data Set to Smaller Files

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 creates a multiplot waveform graph with cursors that follow the movements of the mouse while staying attached to the corresponding plot. The effect created is similar to the graphs on Google Finance.


Description
The Moving Cursor Graph allows users to visually match data points with the actual values of those points and compare those values across multiple plots. An event structure is used to find the coordinates of any mouse movements, and those coordinates are transformed to graph coordinates using a simple proportion. Using property nodes, the cursors are then moved to those new graph coordinates. Another property node is used to find the Y-value of the plot at that X-coordinate, and the value is written to an indicator. A for loop is then used to repeat this process for each plot included on the graph.

The Moving Cursor Graph creates a more interactive front panel: adding form as well as function. The VI could be wrapped into an X-control, which could then be easily implemented into existing front panels.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open " Moving Cursor Graph 2012 NIVerified.vi"
  2. Run the program

 

Additional Information or References
VI Block Diagram

 5-180.png

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

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