02-28-2004 04:47 PM
02-29-2004
09:19 AM
- last edited on
12-11-2024
10:16 AM
by
Content Cleaner
This sounds like you want a storage scope!
This can be done using a waveform chart but you will have to resort to using the history property of the chart to repeatedly re-write your display. Better off using a waveform graph.
Issue with chart.
The chart wants to slapp the new data at teh end of the old. This is fine if you want to watch the graph as the experiment procedes, but not good for adding plots as you go.
A graph will plot all the data you pass to it whenever it is updated. You can take advantage of this feature along with another property of both graphs and charts, that being, NaN's will not plot!
So...
Set up a 2-d array that will hold all of the data from all runs and use it to intilize a shift register big enought hold all of you
r runs with room for all of your samples. It should be inititialized such that is is filled with all NaN's.
Now as your experiment runs it should start at teh first row of the array and start replacing the NaN's with your readings. Present this update array to you graph as the updates come in. The data should plot as you expect.
On the next and susequent runs, incremet your row number and drop the new readings in on top of the NaN's for the next row. Now when the data is presented to the graph the old data should remain pltted as earlier, but now a new plot will be developed.
I am attaching a crude eaxample that demostrates the concepts. Watch the code in execution highlighting to see how it operates. If your tests are short and you do not care to watch the plot of each test devlop, move the graph terminal update outside the for loop.
I hope this help,
Ben
Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com