Example Code

Waveform Data Plot to XY-Graph

Code and Documents

Attachment

Overview

This example VI demonstrates the method to plot a waveform data to XY-Graph.

 

Description

This VI shows a way to plot waveform information to an X-Y Graph by converting a series of X and Y values to a cluster with the Y values acquired by an array input and the corresponding X values increased by dt. This VI could be used to show waveform data that has a steady increase value of X. It could be further improved to show information of attributes.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI " Waveform to XY-Graph 2012 NIVerified.vi"
  3. Enter input signal
  4. Run the program

 

Additional Information or References
VI Snippet

Block Diagram.PNG

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

 

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!

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

Comments
kkjmt
Member
Member
on

That is great!

But I have some problem. If Waveform have information of attributes, how transfer to XY-Graph?

Labview 7.0, 8.0, 8.6,8.6.1,2011
RavensFan
Knight of NI Knight of NI
Knight of NI
on

Two things that I see need to be fixed.

1.  Where the Bundle by Name is used to create the XY graph, it should be X-Values, Y-Values.  Right now it is X-Values and X-Values again, so a valid XY graph cluster is not created.

2.  The XY Graph indicator should be attached to the connector pain.