04-02-2021 03:06 AM
Dear friends,
I have to plot a set of three polygons for one time and plot a continuous X-Y data in X-Y graph. The three polygons should be there along with the axis and the continuous X-Y data has to be plotted with the past points also present.
The continuous X-Y data will be fed from external hardware.
Please suggest a way.
04-02-2021 04:54 AM - edited 04-02-2021 05:03 AM
Plot your XY-graph with 4 plots, one for each of the polygons and one for the continuous data.
Store the "previous data" in a shift register, and use something like Build Array to append new samples to the continuous data plot. Don't update the polygons.
The help states:
The XY graph accepts three data types for displaying multiple plots. The XY graph accepts an array of plots, where a plot is a cluster that contains an x array and a y array.
The XY graph also accepts an array of clusters of plots, where a plot is an array of points. A point is a cluster that contains an x value and a y value. The XY graph also accepts an array of clusters of plots, where a plot is an array of complex data, in which the real part is plotted on the x-axis and the imaginary part is plotted on the y-axis.
Here's an example: