29

LabVIEW Charts & Graphs

Embed Size (px)

Citation preview

Page 1: LabVIEW Charts & Graphs
Page 2: LabVIEW Charts & Graphs

LabVIEW Charts & GraphsCreating a Graph:• To create a Waveform Graph, pop-up on the

Front Panel > Controls > Graph >

Page 3: LabVIEW Charts & Graphs

Types of Charts & Graphs

• Waveform Chart: special numeric indicator that can display a history of values acquired at a constant rate.

• Waveform Graph: special numeric indicator that displays an array of data. Updates after all points have been collected.

• XY Graph: Displays data acquired at a non-constant rate, such as two columns or arrays data.

• Digital Waveform Graph: Displays data as pulses or groups of digital lines.

• (Windows) 3D Graphs: Displays 3D data on a 3D plot

Page 4: LabVIEW Charts & Graphs

Types of Charts & Graphs

Waveform Chart

Waveform Graph

XY Graph

Digital Waveform Graph3D Graph

Page 5: LabVIEW Charts & Graphs

Waveform Charts

Accumulates after new run

Page 6: LabVIEW Charts & Graphs

Waveform Charts

Page 7: LabVIEW Charts & Graphs

Waveform Charts

Page 8: LabVIEW Charts & Graphs
Page 9: LabVIEW Charts & Graphs

Waveform Charts• Chart Update ModesThe waveform charts use various modes to display data. These modes

include Strip Chart, Scope Chart, and Sweep Chart.

Page 10: LabVIEW Charts & Graphs

Waveform Charts

Page 11: LabVIEW Charts & Graphs

Waveform Graphs

Page 12: LabVIEW Charts & Graphs

Waveform Graphs

Page 13: LabVIEW Charts & Graphs

Waveform GraphsBuild a sine waveform

Page 14: LabVIEW Charts & Graphs

Waveform XY Graphs

Also you can use merge to plot two signals of xy in one graph by merging the x’s together and y’s together andenter both to xy graph

Page 15: LabVIEW Charts & Graphs

Waveform XY Graphs

Page 16: LabVIEW Charts & Graphs

Waveform & XY Graphs

Page 17: LabVIEW Charts & Graphs

XY Graphs & Planes• There are many planes in the xy graph. Such planes like

Nyquist, S plane, Z plane and Nichols

Page 18: LabVIEW Charts & Graphs

XY Graphs & Planes

Page 19: LabVIEW Charts & Graphs

Digital Waveform Graph

Page 20: LabVIEW Charts & Graphs

Digital Waveform Graph

Page 21: LabVIEW Charts & Graphs

3D Graph3D parametric graph: creates a 3D graph control to draw a complex surface in 3D space. The control is wired to a subvi that takes in the data representing the surface.

Page 22: LabVIEW Charts & Graphs

3D Graph3D surface graph: creates a 3D graph control to draw a

surface in 3D space. The control is wired to a subvi that takes in the data representing the surface

Page 23: LabVIEW Charts & Graphs

3D Graph• 3D curve graph: creates a 3D graph control to draw a line in

3D space. The control is wired to a subvi that takes in the datarepresenting the line

Page 24: LabVIEW Charts & Graphs

Other chart/graph types available

Polar plot indicator Smith plot indicator

Min-Max plot indicator Distribution plot indicator

Radar plot indicator Picture

Data types:

Page 25: LabVIEW Charts & Graphs

Charts & Graphs Features• Plot Legend: Defines the color and style of the plot(s). Resize

the legend to display multiple plots.

• Scale Legend: Defines labels for scales and configures scale properties.

• X Scale and Y Scale: Formats the x- and y-scales.

• Cursor Legend (graph only): Displays a marker at a defined point coordinate. You can display multiple cursors on a graph.

• Scrollbar (chart only): Scrolls through the data in the chart. Use the scroll bar to view data that the buffer does not currently display.

Page 26: LabVIEW Charts & Graphs

Example

Page 27: LabVIEW Charts & Graphs

Assignment1- Sketch the function x3+2x2+3cos(x) given the inputs: (use For Loop structure)

– the value of xmin– the value of xmax– the step value

2- Figure below shows a simple level control system in which a closed or opens the valve by a relay. Input flow is not controlled. The relay opens the valve if output voltage greater or equal 6.0 V and closed below that. The level sensor has a transfer function of Vh=0.8h+0.4 V

• find the value of amplifier gain, K, required to open the valve when the level reached 2m

• show two LEDs indicators that tell if the valve is opened or closed

Page 28: LabVIEW Charts & Graphs

Assignment

3) The tank shown below has the following Boolean variables:flow rates QA, QB and QC; Pressure P; Level LAll are high if the variable is high (true) and low (false) otherwiseDesign a labview VI to give two alarms (LEDs) as follow:

OV (overfill) alarm when:• if either input flow rate is high while the output flow rate QC is low, the pressure is low and the level is

high.• If both flow rates are high while the output flow rate is low and pressure is low.EP (empty) alarm when:• if both input rates are low, the level is low and the output flow rate is high• if either input flow rate is low, the output flow rate is high an the pressure is high.

Page 29: LabVIEW Charts & Graphs

Assignment4)• The output voltage is as follows:• Vout = Vin when -2 <Vin<2• Vout = 2 V when Vin>2• Vout = -2 V when Vin<-2• Using Labview, if Vin is sine wave, sketch

1. Vin vs time graph2. Vo vs. time graph3. Vin and Vo vs time graph 4. Vo vs Vin graph