LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting different sets of XY coordinates on a single plot

Correct me if I'm wrong.
If you click the button you want to add a point to the graph. Now you fill your graph with 16 points in each iteration.

I would suggest you to build up your array and in a separate case take out the desired values and append them to a separate array, which is then displayed in the graph.

In this separate case you can place the logic to decide which values shall be taken out of which array.

Maybe this is what you're looking for - otherwise try to describe it a little bit better (for instance with more than just to points).

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 11 of 20
(1,306 Views)
hi becktho,

can you show me how to get it. I'm confuse of your method. Maybe you can show me with your example.

Thanks again
0 Kudos
Message 12 of 20
(1,303 Views)
Ok - I think this makes clearer what I suggested...

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 13 of 20
(1,298 Views)
hi thomas,

thanks for illustrating the solution with an example. Do you know how to set different colors for different XY values?
For example, one set of XY value is red and the other is yellow?

Thanks Thomas
0 Kudos
Message 14 of 20
(1,279 Views)
Hi

For this you need a propertynode of the graph, set the active plot and set a color for this plot. You also can set the color of the point.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 15 of 20
(1,271 Views)
I'll to thanks you again...these few week i'll be busy so when i try this example, then i'll get back again...by then
i'm ready to ask you more questions....

Thanks

From
Donny
0 Kudos
Message 16 of 20
(1,248 Views)
Hi, how can i change the color of the points?

Pls advice thanks

From
Donny
0 Kudos
Message 17 of 20
(1,227 Views)
Hi,

I've another question. How am I able to get red color for one set of XY point and Green for the other set of XY points? So on the single XY plot there are red and green dots only. I'm using your example which you had provided earlier on. Can you kindly show me how to go about doing it?

Thanks
0 Kudos
Message 18 of 20
(1,226 Views)
Hi

I attach you a the example I already used. I built in code to set the plot and point color. Unfortunately the color is set just once - I think due to the fact that the color is not settable if the vi runs (right-click on a color property >> help for plot color).

Maybe it works in LV7.0.

But if you know that you have just two plots, you can set the colors on the graph-control itself. In the top right corner you have a field named "Plot 0". Resize it to match the number of sets, change colors and styles.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 19 of 20
(1,222 Views)
Correction to my previous post: Maybe it works in LV7.1.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 20 of 20
(1,219 Views)