04-24-2007 04:19 PM
04-24-2007 04:39 PM
04-24-2007 05:17 PM
Hi Matt,
Suppose you had a WaveformGraph object called sampleWaveformGraph and you had two plots on this graph.
To access plot 1's methods and properties, you would say
sampleWaveformGraph.Plots[0].PlotY(data); // The parameters index of Plots[index] is zero-based
The IndexOf method returns the zero-based index of the first occurrence
of an item in the collection. In this case, you’re working with the Plots
collection. So for example, let’s say you had a plot object called waveformPlot2.
Then to figure out at what index this plot is located in the Plots collection,
you would say
int index;
index = sampleWaveformGraph.Plots.IndexOf(waveformPlot2); // if
this plot was the second plot in your collection, index would be 1 since the
Plots collection is zero-based.
Have a look at the shipping examples for plotting located in the <MeasurementStudioVS2005>\DotNet\Examples\UI\Graph directory to help you get started on
plotting.
Best Regards,
04-24-2007 06:43 PM
04-24-2007 07:10 PM
04-25-2007 08:10 AM