course contents

40
Course contents 1. Labview basics virtual instruments, data flow, palettes 2. Structures for, while, case, ... editing techniques 3. Controls&Indicators arrays, clusters, charts, graphs 4. Modular programming + recording SubVIs File I/O 5. Analysis Linear algebra, Signal processing, Mathscript 6. Communication between loops Producer/Consumer, State Machine, Local variables 7. Instrument control DAQ, GPIB, Serial, Data collection

Upload: tamal

Post on 23-Feb-2016

31 views

Category:

Documents


0 download

DESCRIPTION

Course contents. Labview basics virtual instruments, data flow, palettes Structures for, while, case, ... editing techniques Controls&Indicators arrays, clusters, charts, graphs Modular programming + recording SubVIs File I/O Analysis Linear algebra, Signal processing, Mathscript - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Course contents

Course contents

1. Labview basics– virtual instruments, data flow, palettes

2. Structures– for, while, case, ...– editing techniques

3. Controls&Indicators– arrays, clusters, charts, graphs

4. Modular programming + recording– SubVIs– File I/O

5. Analysis– Linear algebra, Signal processing, Mathscript

6. Communication between loops– Producer/Consumer, State Machine, Local variables

7. Instrument control– DAQ, GPIB, Serial, Data collection

Page 2: Course contents

Array

• Variable sized collection of data elements that are all the same type

Page 3: Course contents

Array

• How to make an array from front panel

Page 4: Course contents

Array

• Color of the icon reflects the data type of the array

Page 5: Course contents

Multidimensional array

• How to add dimensions to the array

Page 6: Course contents

Auto-indexing• How to make an array from the block diagram

Page 7: Course contents

Auto-indexing

• Auto-indexing on loops

Page 8: Course contents

Auto-indexing

• Auto-indexing overrides the loop count setting

Page 9: Course contents

2D array

• Auto-indexing can create multidimensional arrays

Page 10: Course contents

Common wire types

Page 11: Course contents

Array functions

• Array size

• Initialize Array– input determines the data type– if zero is wired to dimension size an empty array is created

Page 12: Course contents

Array functions

• Build Array– concatenates multiple arrays or appends elements

Page 13: Course contents

Array functions

• Array subset: select a portion of an array

Page 14: Course contents

Array functions

• Index array– select an

element from an array

Page 15: Course contents

Polymorphism

• Some functions accept inputs of different dimensions– such as add, multiply, divide

Page 16: Course contents

Cluster

• Fixed-sized collection of data elements of mixed type• Reduces the number of wires and connector terminals in

subVIs

Page 17: Course contents

Cluster order

• Ordered according to when elements were placed in cluster

Page 18: Course contents

• Program won’t execute if there are inconcistencies in the cluster order

Page 19: Course contents

Cluster functions: Bundle

• Assemble into a new

• Replace old elements

Page 20: Course contents

Cluster functions: Unbundle

• Extract components of a cluster

Page 21: Course contents

Cluster functions: (Un)bundle by name

• Instead of cluster order one can refer to the cluster elements by name

Page 22: Course contents

Charts and Graphs

• Chart show data by appending new data to existing plot• Graphs display pregenerated arrays

Page 23: Course contents

Waveform chart

• One can select between three different update modes– Strip, scope, or sweep

Page 24: Course contents

Multiple traces on Chart

• Depending on the input data, chart can show multiple plots or it can update multiple points on a single run– see Charts.vi for information

(Help >> Find Examples >> Building User Interfaces >> Displaying Data >> Graphs and Charts >> Charts.vi)

Page 25: Course contents

Stacked plots

• With multiple plots one can choose between stacked or overlayed plots

Page 26: Course contents

Clear chart

• Empty the chart by selecting clear chart

Page 27: Course contents

Chart history

• One can change the length of the chart history

Page 28: Course contents

Waveform graphs

• Use graphs to plot existing data all at once• Ideal for uniformly distributed arrays• If only one array is wired to the graph, it assumes X0=0 and

ΔX=1

Page 29: Course contents

Waveform graph

• Wire a cluster defining X0 and ΔX

Page 30: Course contents

Multiple graphs

• Bundle arrays to make multiple plots

• For more ways to use waveform graphs see:– Help >> Find Examples >> Fundamentals >> Graphs and Charts >>

Waveform Graph.vi

Page 31: Course contents

Cursors on Graphs

• From Visible Items >> Cursor Legend one can create cursors– right-click on cursor legend and select Create Cursor– cursor can be Free or tied to the plot

Page 32: Course contents

Annotations on Graphs

• One can create annotations to graphs– they can be free

or tied to the plot

Page 33: Course contents

XY Graph

• For uneven sample intervals or dependent variables (e.g. x vs y)

• Possibility to build XY graph with Express VI– see also: Help >> Find Examples >>

Fundamentals >> Graphs and Charts >> XY Graph.vi

Page 34: Course contents

Customizing charts and graphs

• Autoscaling– Right-click and select auto-

scaling for X- or Y-axes– Scales the axes so that all

data points are visible

Page 35: Course contents

Axes scaling

• When AutoScaling is off one can change the axis scales by typing in the number that is needed

Page 36: Course contents

Plot properties

• Appearance– change visibilities

• Display Format– change format and precision

of e.g. scale numbering• Plots

– appearance of plots: name, line style, marker

• Scales– tick styles, tick positions

Page 37: Course contents

Plot properties

• One can change the line styles etc. from the Plot Legend

Page 38: Course contents

Graph palette

• Graph palette can be used for zooming or to pan the graph

zoom pan

Page 39: Course contents

Export image or data

• Right-click >> Export

Page 40: Course contents

Keynotes