Hi,
Hi,
Iwant to plot several curves in one graph. The curves are acquired one after each other. I want that the new curve is plotted live into the graph of the existing curves.
I achieved the following, but not what I described above:
I can plot multiple curves at once (using an array of clusters).
I can plot multiple curves (and a single) live (using clusters and arrays).
I can add a new curve live to an existing curve when the "x-axis" is not specified (Waveform Graph with arrays and shift registers).
However, I can not plot new data (live) to an existing plot with different x-axis.
Using the Express x-y Graph is basically doing what I want (if I just add the next data), but there the last data point is connected to the first datapoint of the new set, which gives a line over the whole plot.
I couldn't find any solution for this, although I think it should not be too difficult to achieve.
Any suggestions?
Thanks in advance!
Philipp
已解决! 转到解答。
@pliehm2 wrote:
I achieved the following, but not what I described above:
I can plot multiple curves at once (using an array of clusters).
I can plot multiple curves (and a single) live (using clusters and arrays).
I can add a new curve live to an existing curve when the "x-axis" is not specified (Waveform Graph with arrays and shift registers).
This is too vague to really tell what you are doing.
If you have different x-axis for the various plots, you need an xy-graph. Simply keep all graph data in a shift register and update the data for the live plot accordingly. Where exactly do you have problems?
The array of clusters using the XY graph is all you need. Simply update the one cluster you are dealing with (using shift registers).
Thanks a lot! The example does exactly what I want!
I think my problem was that I did not know how to update the array of clusters properly (i.e. the "Replace Array Subset" is of course the right solution, but I didn't think of it.....:()
Thanks for the fast reply!
Cheers
Philipp