Graphical display of data is an important aspect of programming in LABVIEW. Good knowledge of ARRAYS and CLUSTERS is important for graphical operations. VIs with graph usually collects the data in an array and then plots the data to the graph to obtain a waveform. TWO-DIMENSIONAL X-Y displays are required in most situations. Charts and graphs let you display plots of data in a graphical form. Charts interactively plot data, appending new data to old so that you can see the current value in the context of previous data, as the new data become available. Graphs plot pre-generated arrays of values in a more traditional fashion without retaining previously-generated data.
If you would like to Enrich your career with an Android certified professional, then visit Mindmajix - A Global online training platform: “LabVIEW training” Course.This course will help you to achieve excellence in this domain.
LabVIEW includes the following types of graphs and charts:
Waveform graphs and charts: 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 and charts: 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.
Windows 3D graphs: Display 3D data on a 3D plot in an ActiveX object on the front panel.
The waveform data type is used by LabVIEW and other National Instrument’s software such as SignalExpress, TDMS, and the DAQmx API to display and store periodic signal measurements. The waveform data type is a cluster comprised of the following:
Timestamps for each value can be calculated by using t0, dt, and the index for the value. Other arbitrary information can be added to the waveform cluster as variants. This can be useful to attach additional information about the signal to show what manipulation may have already been performed on it.
LabVIEW functions accept the waveform data type. For CONTROLS AND INDICATORS of some data types, LabVIEW will automatically coerce the waveform allowing you to make the connection, even though the terminal’s required data type is not explicitly the waveform type. For example, if you connect a waveform wire to a numeric indicator a red dot will appear on the block diagram icon (to indicate coercion is being applied) and the last value of the Y array contained within that waveform will be displayed on the indicator on the front panel. If the waveform is connected to a 1D array indicator then LabVIEW will simply pass the Y data from the waveform to that indicator.
For the Formula Node or a MathScript Node, LabVIEW will not coerce the data automatically. To be able to present the Y values of the waveform into a Formula node as a 1D array or double numeric’s you will first have to use the Get Waveform Components VI which is found in the Waveform sub palette. Using this function and others contained within the Waveform palette, you can extract or modify data to any part of the waveform.
Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!
|LabVIEW Training||May 23 to Jun 07|
|LabVIEW Training||May 28 to Jun 12|
|LabVIEW Training||May 30 to Jun 14|
|LabVIEW Training||Jun 04 to Jun 19|
Ravindra Savaram is a Content Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.
Copyright © 2013 - 2022 MindMajix Technologies