cap.7

21
7. Afișarea datelor TOPICS A. Waveform Charts B. Waveform and XY Graphs C. Intensity Plots D. Personalizarea graficelor

Upload: costelgxa

Post on 22-Jan-2015

112 views

Category:

Documents


2 download

DESCRIPTION

Instrumentatie virtuala

TRANSCRIPT

  • 1. 7. Afiarea datelorTOPICSA. Waveform ChartsB. Waveform and XY GraphsC. Intensity PlotsD. Personalizarea graficelor

2. LabVIEW offers powerful functionality for plotting data. In the Graphpalette we have lots of useful controls for plotting and visualization ofdata. The most useful are: Waveform Chart Waveform Graph XY Graph 3. nregistratoarele sunt indicatoare numerice speciale care afieaz unasau mai multe curbe.Diagrama unda (Waveform Chart ): Este o componeta de interfatadedicata afisarii uneia sau mai multor reprezentari grafice simultan,pentru care se urmareste variatia in timp.Graficele unda (Waveform Graph ): Se utilizeaza pentrureprezentarea functiilor de o variabila (de forma y=f(x)), avandpunctele distribuite uniform pe axa absciselor. Aceasta se aseamanacu diagrama und. Permite realizarea uneia sau mai multorreprezentari simultane.Graficul XY(XY Graph ): Este componenta cea mai generala, carepermite realizarea reprezentarilor grafice ale functiilor de douavariabile X si Y. Deasemenea se pot realiza una sau mai multereprezentari simultane. 4. A. Waveform Charts The waveform chart is a numeric indicator that displays one ormore plots. Waveform charts can display single or multiple plots.Figure de mai jos, shows the elements of a multiplot waveformchart. Two plots are displayed: Raw Data and Running Avg. 5. Wiring to ChartsSingle-Plot ChartMultiple-Plot Chart 6. B. Waveform and XY Graphs Selected from the Graph subpalette Waveform Graph Plot an array of numbers against their indices XY Graph Plot one array against anotherPlot Legend(point and linestyles)Graph PaletteScale Legend 7. Single-Plot Waveform GraphsUniform X axisInitial X = 0.0Delta X = 1.0Uniform X axisyou specify pointspacing 8. Multiple-Plot Waveform GraphsEach row is aseparate plot:Initial X = 0Delta X = 1Each row is aseparate plot:Bundle specifiespoint spacing of theX axis 9. XY Graphs Non-uniform X axis Separate X and Y arraysdefine data points 10. Chart and Graph Use SummaryUse the Context Help window with charts and graphs 11. C. Intensity Plots and Graphs Useful in displaying terrain, temperature patterns, spectrumanalysis, and image processing Data type is a 2D array of numbers; each number represents acolor Use these options to set and display color mapping scheme Cursor also adds a third dimension 12. D. Personalizarea graficelor 13. The different Chart components in LabVIEW offer a great deal ofcustomizing. You may click on the Plot Legend in order to set colors, differentline styles, etc. 14. If you right-click on the Graph/Chart, you may set properties such asauto-scaling, etc. 15. If you select Properties, you get the following dialog: 16. You may also select which items that should be visible or not. 17. Exemple:Se va realiza un VI care s genereze un numr aleator la o ratspecificat de utilizator i afiarea rezultatelor pe un grafic(Waveform Chart) pn cnd este oprit de utilizator. Se va salvasalva VI-ul cu numele While_Graph.vi 18. Se va modifica While_Graph pentru a calcula i afia media ultimelortrei msurri. Se va salva salva VI-ul cu numeleWhile_Graph_Average.vi 19. Urmtorul exemplu arat construcia funciei trigonometrice sinuscu ajutorul buclei For, i afiarea rezultatului pe un Grafic und. 20. Summary The waveform chart is a special numeric indicator that displays one ormore plots. Waveform graphs and XY graphs display data from arrays. Right-click a waveform chart or graph or its components to setattributes of the chart and its plots. You can display more than one plot on a graph using the Build Arrayfunction and the Bundle function for charts and XY graphs. The graphbecomes a multiplot graph when you wire the array of outputs to theterminal. When you wire data to charts and graphs, use the Context Helpwindow to determine how to wire them. You can use intensity charts and graphs to plot three-dimensionaldata. The third dimension is represented by different colorscorresponding to a color mapping that you define. Intensity charts andgraphs are commonly used in conjunction with spectrum analysis,temperature display, and image processing.