11-25-2009 12:04 PM
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
Solved! Go to Solution.
11-25-2009 12:15 PM - edited 11-25-2009 12:22 PM
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
11-25-2009 12:18 PM
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....
11-25-2009 01:00 PM
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.
11-25-2009 01:17 PM
11-25-2009 01:39 PM
12-06-2009 10:32 AM
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
12-06-2009 08:59 PM
12-07-2009 11:17 AM
Oh! Wonderfull! You are a genius.
Thank you very much. This is exactly the code
that I need.
Francesco
03-22-2013 06:24 AM
Hi Darin.K
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