1 / 40

Course contents

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

tamal
Download Presentation

Course contents

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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 • Communication between loops • Producer/Consumer, State Machine, Local variables • Instrument control • DAQ, GPIB, Serial, Data collection

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

  3. Array • How to make an array from front panel

  4. Array • Color of the icon reflects the data type of the array

  5. Multidimensional array • How to add dimensions to the array

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

  7. Auto-indexing • Auto-indexing on loops

  8. Auto-indexing • Auto-indexing overrides the loop count setting

  9. 2D array • Auto-indexing can create multidimensional arrays

  10. Common wire types

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

  12. Array functions • Build Array • concatenates multiple arrays or appends elements

  13. Array functions • Array subset: select a portion of an array

  14. Array functions • Index array • select an element from an array

  15. Polymorphism • Some functions accept inputs of different dimensions • such as add, multiply, divide

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

  17. Cluster order • Ordered according to when elements were placed in cluster

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

  19. Cluster functions: Bundle • Assemble into a new • Replace old elements

  20. Cluster functions: Unbundle • Extract components of a cluster

  21. Cluster functions: (Un)bundle by name • Instead of cluster order one can refer to the cluster elements by name

  22. Charts and Graphs • Chart show data by appending new data to existing plot • Graphs display pregenerated arrays

  23. Waveform chart • One can select between three different update modes • Strip, scope, or sweep

  24. 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)

  25. Stacked plots • With multiple plots one can choose between stacked or overlayed plots

  26. Clear chart • Empty the chart by selecting clear chart

  27. Chart history • One can change the length of the chart history

  28. 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

  29. Waveform graph • Wire a cluster defining X0 and ΔX

  30. 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

  31. 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

  32. Annotations on Graphs • One can create annotations to graphs • they can be free or tied to the plot

  33. 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

  34. 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

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

  36. 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

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

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

  39. Export image or data • Right-click >> Export

  40. Keynotes

More Related