12-06-2010 04:58 PM - edited 12-06-2010 05:05 PM
Your graph is only showing the last point(s) because that's all you're feeding it. Just because you build a single point into an array doesn't make the array bigger. Now it's an array with one data point rather than a scalar. To the graph there's no difference. What you want to do is to expand those build arrays and concatenate the new data into arrays coming from a shift register. That way you have a history building up that gets plotted each iteration.
EDIT: Be aware that concatenating into an array like this is memory inefficient. There's not much choice when you have unknown amounts of data coming in but it's something to be aware of. If a VI like this runs for long periods you may run out of memory because of the copies LabVIEW will make in the name of data security. There are numerous threads on the subject. Search for more info...
12-07-2010 11:36 AM
Thank you for the reply. Shortly after posting I decided to switch to a different architecture entirely. The help section on this topic could use a facelift, thank goodness for the forums.
Regards,
PChemist
03-28-2011 12:04 PM
Dear All,
I am trying to plot three response trends from the output of a Simulation on one single XY Graph (see attached vi in the "All combined" case selection. I have tried a variety of methods including those shown in the help files and example files however it simply doesn't work (the old chestnut of signal mismatches which drives me mad!!!). I'm sure it can be achieved and I'm hopefully waiting for someone with more experience to point me in the right direction.
Attached vi for info.
Regards,
03-28-2011 12:55 PM - edited 03-28-2011 12:56 PM
Sorry, I am not familiar with the simulation toolkit, but tthere are a couple of things that don't make sense.
Why is there a FOR loop with 1 iteration and autoindexing outputs? That adds another dimension to your plot data without adding new data. remove it!
Each wire data seems to be a cluster of x and y arrays, directly compatible with an xy graph. To create an xy multiplot with all three, simply form an array fo these clusters.
03-28-2011 01:12 PM
Hello,
I don't understand why you are using a for loop with one iteration. Just collect the signals you want to display into an array and use either the simulation time waveform or the collector with an XY graph.
Hope this helps.
05-25-2011 03:10 AM
Hi everybody,
i have read the articles but i didn t find my answer. in my case i have two separate graph but i want only one with 2 curves. i tried to build an array or for loop but nothing do it.
so in the attachment file i show you the graph 2 & 3 are the one i have and i would like to have the graph 4 with 2 curves.
i tried many things and now i don´t have more idea so i am calling help to you 🙂
thank you very much
05-25-2011 03:28 AM
It looks like the problem is in your cluster to graph sub-vi.
I have replicated your code here (creating dummy xy data in the for loops). Notice the difference in the thickness of the pink lines when compared to the images you posted. Without seeing your code, I am guessing that you have overcomplicated the data formatting in the sub-vi.
05-25-2011 03:42 AM
I use the cluster to graph sub VI for the graph 2 and 3 but not for the 4. but i show you the subVI if you want first file.
And i tried the attachment file 2, and i see the values of X and Y axis change i see the graph "running" but not the line .
i know i could be hard to understand and i am sorry about it
05-25-2011 03:46 AM
Sorry - I don't have the ability to open your vi. If you can 'save as previous version' to V8.5 I can take a look.
Ian
05-25-2011 03:48 AM
i think is the easier sub vi we can do