Example Code

Mixed Signal Graph with Multiple Cursors 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 example VI show how to handle multiple graphs and change frequencies, delays and cursors in LabVIEW.

 

Description
This VI shows four randomly generated waveforms all on the same graph. All four waveforms also have cursors, which are connected through property nodes in a seperate loop on the block diagram. The user has the ability to set the time delay between each update of the graphs, the frequencies, and also whether or not to pause the graphs from updating.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Mixed Signal Graph LV2012 NI Verified.vi"
  3. Run the program
  4. Modify the frequency, the triangular wave frequency the number of points and the loop timing
  5. Pause and restart the waveform generation
  6. Select the cursors on the graphs and move them around

 

Additional Information or References

VI Block Diagram

Mixed Signal Graph LV2012 NI Verified.png

 

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

Chris Van Horn
Applications Engineer

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