LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show 2 groups of data in 1 XY plot at different time?

Hi, all:
I have a question and hope someone can help me figure out the solution or whether or not no solution for the question. I need to collect 2 groups of data [x(n),y(n)] and [x(n),z(n)]. I will collect x-y first then x-z. I need to collect and show the x-y data first, when I am satisfied, then collect and show the x-z data. It should be in the same plot. I got an error message so far and cold not figure out the solution. I attached my code and hope someone can help me. The code is in version 8.0 and I am sure there is no virus. Thank you a lot in advance.
0 Kudos
Message 1 of 4
(2,798 Views)
When you show the seconds set do you want the first set to still show up?
 
See the 2 methods.  I modified yours to show 1 at a time and then built an array to be able to show both.
Message 2 of 4
(2,790 Views)

Hello ccyang

When you look the context help of the xy-graph in the diagram, you see the supported data types. An array of xy-clusters is accepted. You may look in the attached code how you could built the array  of the two plots.

Check the example VIs included in LabVIEW (in the help menu). There are several examples on charts and graphs.

Greetings

shb

Message 3 of 4
(2,790 Views)
Thanks a lot, Evan and shb! Both of your answers solve my problem. Thank you again.
0 Kudos
Message 4 of 4
(2,774 Views)