Example Code

Determine Amplitude during Execution using Cursors

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

Download All

Overview

Coding that exemplifies how to move Y cursor on a graph to the value where the X cursor meets the graph.

 

Description

This VI builds an XY graph and allows user to move cursor Y to a desired location. When the user clicks the "set cursor" button, cursor X moves so that it intersects cursor Y and the VI returns the amplitude at the point of intersection.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Run the VI
2. Move the X cursor
3. Verify that the Y cursor changes when the graph meets the X cursor
4. Stop the execution with the stop button

 

Additional Information or References

Capture.PNG

Simran K
National Instruments
Applications Engineer

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