LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot

Dear Labview users. I have some problem. I wrote the Labview program and use XYplot. I want to get many graphs, but don't delete oldest.
For example: If I push the run button, I get 1st XY graph. I want to push again and get 2-nd graph, then 3-rd, then continuesly.
Now when I push run button, the 1st graph clean, and write 2-nd. I want that how many times I push run button, how many graphs exist in my graph.
Please help me.
If you can, please atach some examples.
Thanks in advance...
 
Sincerely
Harut Melikyan
0 Kudos
Message 1 of 2
(2,476 Views)
This is a simple problem to solve, you just have to use the right representation for the X/Y graph. The thing to remember is that a single plot consists of a cluster containing an array of x values and an array of y values. A multiplot graph consists of an array of those clusters. The attached example shows the basic functionality you are wanting. When you run the VI you will see white dots begin to appear on the graphs. Click the New Plot button and red dots will begin appearing, click it again and green dots will start appearing on the plot - and so forth.

The way this works is that the timeout event adds random datapoints to the last plot in the array. Clicking the New Plot button adds an empty plot to the end of the array.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 2
(2,472 Views)