Waveform graphs receive multiple data types to display multiple curves. The waveform receives a two-dimensional array of values, and one line in the array is a curve . The waveform graph treats the data in the array as a point on the graph, starting at x = 0 and incrementing the x index in increments of 1. Connecting a two-dimensional array data type to a waveform diagram, right-clicking the waveform and choosing Transpose Array from the shortcut menu, each column in the array is displayed as a curve. (The following simple program diagram is the display of a two-dimensional array in the waveform diagram.)
After transpose
A waveform image receives an array of curves that contain clusters. Each cluster contains a one-dimensional array that contains y data. The inner array describes the points on the curve, and each cluster of the outer array corresponds to a curve. The following front panel shows an array of such y -clusters.
A waveform image receives an array of curves that contain clusters. Each cluster contains a one-dimensional array that contains y data. The inner array describes the points on the curve, and each cluster of the outer array corresponds to a curve. The following front panel shows an array of such y -clusters.
If each curve contains a different number of elements, you should use a curved array instead of a two-dimensional array. For example, if you collect data from several channels and the acquisition time for each channel is different, you should use a curved array instead of a two-dimensional array, because the number of elements in each row of a two-dimensional array must be the same. The number of elements in an array within a cluster array can vary.
Waveform graphs receive a cluster with initial values x, Delta x , and cluster arrays. Each cluster contains a one-dimensional array that contains y data. The bundle function binds the array to the cluster, or embeds the cluster into the array using the Create Array function. Create a cluster array function to create a cluster array that contains the specified input.
The waveform receives a cluster array containing x -values,x -values, and y -data arrays. This data type is commonly used for multi-curve waveforms, specifying a unique starting point and an X-ruler increment for each curve.
Waveform graphs also receive Dynamic Data types for express VI. Dynamic Data types, in addition to the data corresponding to the signal, also include various properties of the signal information, such as signal name, data acquisition date and time. Properties determine how the signal is displayed in the waveform diagram. When a Dynamic data type contains multiple channels, the waveform graph displays the curves for each channel and automatically formats the legend and the time identification of the graph X ruler.
Display multiple curves in a waveform chart