Top Banner
CHARTS AND GRAPHS Prepared By: Shivraj Rathod Devendra Shetye VEERMATA JIJABAI TECHNOLOGICAL INSTITUTE MATUNGA, MUMBAI 400019 Guided By: Dr.M.S.Panse
31

Charts&Graphs

Dec 25, 2015

Download

Documents

GaneshMashette

chart and graph in labview
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Charts&Graphs

CHARTS AND GRAPHS

Prepared By: Shivraj Rathod Devendra Shetye

VEERMATA JIJABAI TECHNOLOGICAL INSTITUTE MATUNGA, MUMBAI 400019

Guided By: Dr.M.S.Panse

Page 2: Charts&Graphs

Introduction1. Charts & graphs provide a great deal of visual appeal. 2. They allow users to quickly spot trends, examine pronounced

data, and see an actual picture. 3. Charts & graphs can be used

• To represent data, illustrate important patterns or relationships.

• Observe changes as data is altered.

• Provide a visual representation of data.

• Effectively clarify information.

• Represent many different types of data.

• Allow users to perceive information quickly.

Page 3: Charts&Graphs

Presenting your Results in VI

1. Displaying Data on the Front Panel• Controls and Indicators

• Graphs and Charts

• Loop Timing

2. Signal Processing• Math Script

• Arrays

• Clusters

• Waveforms

Fig.1-The Virtual Instrumentation Approach

Page 4: Charts&Graphs

1. The waveform chart is a special numeric indicator that displays one or more plots.

2. The waveform chart is located on the Controls >> Graphs >> Waveform Chart.

3. Waveform charts can display single or multiple plots.4. Waveform Charts update modes

• Strip chart -shows running data continuously scrolling from left to right across the chart.• Scope chart -shows one item of data, such as a pulse or wave, scrolling partway across the chart from left to the right.• Sweep chart- works similarly to a scope except it shows the old data on the right and the new data on the left separated by a vertical line.

Waveform Charts

Page 5: Charts&Graphs

Waveform Charts

Selected from the Controls Palette » Graphs » Waveform Charts Palette Waveform Charts update modes- Waveform Chart » Advance » Update Mode » Strip/Scope/Sweep Chart.

Page 6: Charts&Graphs

1. You can wire a scalar output directly to a waveform chart or display multiple plots.

2. Bundle multiple plots together using the Bundle function located on the Functions » Cluster palette.

3. The Bundle function bundles multiple outputs to plot on the waveform chart.

4. The waveform chart terminal changes to match the output of the Bundle function.

5. To add more plots, use the Positioning tool to resize the Bundle function.

Wiring Data into Charts

Page 7: Charts&Graphs

Single Plot Charts Multi Plot Charts

Page 8: Charts&Graphs

8

Modifying Chart Properties

• Change the appearance

• Set the format and precision of the axis

• Choose the plot type

• Edit the scales

• Document the chart

Page 9: Charts&Graphs

9

Customizing Charts and Graphs

Right-click and select Visible Items to view the following items:

• Plot Legend

• Digital Display

• Scrollbar

• X and Y Scale

• Graph Palette

• Scale Legend

Graph Palette

Scale Legend

Zoom Subpalette

Page 10: Charts&Graphs

Charts – Add 1 data point at a time with history

• Chart updates with each individual point it receives

Functions » Express » Graph Indicators » Chart

Page 11: Charts&Graphs

Example-1

To construct a VI to study different types of Charts

Strip Chart Scope Chart Sweep Chart

Page 12: Charts&Graphs

Example-2

This VI illustrates how to programmatically clear different types of charts.

Charts can accept a single point at a time or multiple points

at a time. The charts are cleared by writing empty arrays to the History

Data property node.

Page 13: Charts&Graphs

Graphs in VI

Outline

Basics Differences between Charts and Graphs Different Types of Graphs Examples in LabVIEW

Page 14: Charts&Graphs

GRAPH It displays one or more plots of sampled measurements.

It can plot single-valued/Multivalued functions with points uniformly/non-uniformly distributed along the x-axis.

It can display plots containing any number of points. It also accepts several data types, which minimizes the extent

to which you must manipulate data before you display it.

Page 15: Charts&Graphs

Differences between Waveform Chart and Waveform Graph

Waveform Graph Waveform ChartThis is for offline display. (i.e. data is already acquired and stored.)

This is for online display. (i.e. real time data )

Does not have History; thus Arrays and clusters are essential.

It has History.

Initial point and interval of the x-axis can be specified using ‘Bundle’.

Waveform Chart does not allow this.

‘Build Array’ can be used to combine multiple channels of data to display them together on single Waveform Graph.

‘Bundle’ is used for multiple channel data display on single Waveform Chart.

Displays data row-wise. Displays data column-wise.

Page 16: Charts&Graphs

Types of Graphs

Type Description

Waveform Graphs

Display data typically acquired at a constant rate.

XY Graphs Display data acquired at a non-constant rate and data for multivalued functions.

Intensity Graphs

Display 3D data on a 2D plot by using color

to display the values of the third dimension.

Digital Waveform Graphs

Display data as pulses or groups of digital lines

Page 17: Charts&Graphs

Types of Graphs

Type Description

Mixed Signal Graphs Display data types accepted by waveform graphs, XY graphs, and digital waveform graphs. Also accept clusters that contain any combination of those data types.

2D Graphs Display 2D data on a 2D front panel plot.

3D Graphs Display 3D data on a 3D front panel plot.

ActiveX 3D Graphs 3D data on a 3D plot in an ActiveX object on the front panel.

Note: 3D and ActiveX 3D graph controls are supported only on Windows in the LabVIEW Full and Professional Development Systems.

Page 18: Charts&Graphs

Waveform Graph

Chart plots data point by point, whereas Graph plots it all at once.

X-axis data is uniformly spaced.

Arrays and Clusters play important role while using Graphs.

Graphs and Loops

Page 19: Charts&Graphs

Front Panel and Block Diagram of VI to send same Array data to both Chart and Graph

Page 20: Charts&Graphs

The Front Panel after one cycle through the WHILE Loop

Page 21: Charts&Graphs

The Front Panel after multiple cycles through the WHILE Loop

Page 22: Charts&Graphs

Waveform Graph- Single and Multiple plots

For Single plot, Initial point and interval of the x-axis can be specified using ‘Bundle’.

The waveform graph accepts an array of clusters of an x value, a delta x value, and an array of y data. This is the most general of the multiple-plot waveform graph data types.

Page 23: Charts&Graphs

XY Graph

To plot data for given (uniformly/non-uniformly spaced) x-axis values.

‘Bundle’ is used for a single channel display.

‘Build Array’ is used after ‘Bundle’ for multiple channel display.

Page 24: Charts&Graphs

Intensity Graph

Used to display 3D data on a 2D plot by placing a block of colors on a Cartesian plane.

Eg.To display patterned data such as temperature pattern and terrains.

The rows of the data pass into the display as new columns on the graph

Page 25: Charts&Graphs

Intensity graph

Page 26: Charts&Graphs

Digital Waveform Graph

Page 27: Charts&Graphs

Digital Waveform Graph

Page 28: Charts&Graphs

Digital Waveform Graph

Upon Expanding Digital Buses on Y Axis

Page 29: Charts&Graphs

Mixed Signal Graph

Page 30: Charts&Graphs

Thank You

Page 31: Charts&Graphs

REFERENCES

Ronald W. Larsen,(Copyright-2011),”LabVIEW for Engineers”,Prentice Hall Publications(ISBN-13: 978-0-13-609429-6 (alk. paper),ISBN-10: 0-13-609429-5 (alk. paper))

Sanjay Gupta and Joseph John, second edition- Fifth reprint 2013,”Virtual Instrumentation using LabVIEW”, McGraw Hill Education(India),ISBN:978-0-07-070028-4

LabVIEW Introduction Course Manual available at www.ni.com.

Examples available in ‘LabVIEW 2013 HELP’.