LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph overlay multi plot with different colors

Solved!
Go to solution

Hi,

I want to do a cyclic X-Y plot in a for loop and plot the graph for each cycle in different colors.

 

I want a plot like XYgraph2 but with different colors and probably even without that tracing line. How do i modify my diagram?

 

Thank you for your time and efforts.

 

SUCHIT

Suchit Shah
Graduate Student
Electrical & Computer Engineering,
Northeastern University,
BOSTON
MA 02115

Certified LabVIEW Associate Developer
Download All
0 Kudos
Message 1 of 14
(15,981 Views)

Looking at your graph I would say that you put all your data as one array, so for tyhe XY graph it's one plot.

To make a multiplot XY graph each plot should be one element of an array.

The XY graph will automatically take another colour for another plot.

 

If you post your code it would changed in no time 🙂

 

 

Edit: example VI to, I hope, clear things out

Message Edited by Alain S on 11-25-2009 07:21 PM
Message Edited by Alain S on 11-25-2009 07:22 PM
0 Kudos
Message 2 of 14
(15,968 Views)

You should put the Build Array Output into the Shift Register so you generate multiple plots.  You will need a new empty constant for initialization.  Each plot will have its own color which you can control if you want.

 

Biting my tongue....

0 Kudos
Message 3 of 14
(15,965 Views)

Err...sorry I don't think so any of your answers make sense. I tried all of those things.

 

I can pretty much affirm, its not as simple as it sounds. Attached is the VI for anyone who wants to play with.

 

Just a note, there is one sub-vi which might not open (it talks to the instrument so even if i attach it might not work). Change it to something which just generates an array. I have to output array (otherwise my coding becomes a bitch since the instrument spits out an array of data...which is what I want due to timing issues) 

 

Thank you all for your time and efforts.

Suchit Shah
Graduate Student
Electrical & Computer Engineering,
Northeastern University,
BOSTON
MA 02115

Certified LabVIEW Associate Developer
0 Kudos
Message 4 of 14
(15,949 Views)
Solution
Accepted by topic author Suchit
0 Kudos
Message 5 of 14
(15,943 Views)
Here is a vi that I made for someone that does close to what you are asking for I believe.
Tim
GHSP
0 Kudos
Message 6 of 14
(15,933 Views)

Hi all! This is my first post 🙂

My name is Francesco and I'm programming a keithley for measure some FET

using labview 8.6. I plot my output data on a XY graph but I have several curves,

one for each value of Vgs. Looking in your forum I've found the code

MultiplePlots.vi (21 kb) posted by Darin.K about a month ago that use Multiple

plots and it is perfect for my goal because with this I can plot every curve with a

different color. The only problem is that I like to plot my data in real time.

The code, however, use a Loop with N=50, accumulates the values on the edge

and plot at the end of the Loop the entire line.

My question is if someone can explain me how to modify the code to plot the line

point by point, so in real time and not at the end o the loop because I need to see

the current values during the measurement and not only at the end.

I think that I need to move the XYgraph inside the loop. I try but without lucky.

Can anyone help me?

thanks and sorry for my very bad english.

     Francesco

0 Kudos
Message 7 of 14
(15,779 Views)
A few ways to do this, here is one.
Message 8 of 14
(15,751 Views)

Oh! Wonderfull! You are a genius.

Thank you very much. This is exactly the code

that I need.

 

  Francesco

0 Kudos
Message 9 of 14
(15,728 Views)

Hi 

how can I control the plot color? I have problem with that, I use mixed signal graph and every time I run my program it is changed to default color and it does not plot in color which i selected before!

 

Thank you

0 Kudos
Message 10 of 14
(11,828 Views)