Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

waveformGraph1.PlotY(multiplePlotData) complain

I want to Plot all 4 plots onto the graph, but got complains about waveformGraph1.PlotY(multiplePlotData).
So I have to use for loop to put all 4 plots onto the graph?


private void PlotMultiple_Click(object sender, EventArgs e)
{
         waveformGraph1.ClearData();
         waveformGraph1.PlotY(multiplePlotData);
       // CWGraph1.PlotY(multiplePlotData, 0, 1, True)        it is working in activeX CWGraph
}


public Form1()
{
            InitializeComponent();
            Random rand = new Random();

            for (int i = 0; i < 99; i++)
            {
                multiplePlotData[0, i] = rand.NextDouble();
                multiplePlotData[1, i] = Math.Sin((i * 1.0) / 50 * 6.28) + 0.5;
                multiplePlotData[2, i] = Math.Sin((i * 1.0) / 35 * 6.28) * 0.5 + 0.7;
                multiplePlotData[3, i] = (i % 10) / 8 - 0.5;
            }
 }

Thanks
Matt
0 Kudos
Message 1 of 3
(4,073 Views)
I think I should use waveformGraph1.PlotYMultiple(multiplePlotData) , right?

Also, waveformGraph does NOT have ChartY property, right?

For i = 0 To 29
       CWGraph1.ChartY(rand.NextDouble, 1, True)
Next


For above code, I have to use
    waveformGraph1.PlotYAppend
or
    waveformGraph1.PlotYAppendMultiple


Thanks
Matt
0 Kudos
Message 2 of 3
(4,069 Views)

Hi Matt,

So in the help manual there's a document titled:

Key Measurement Studio Windows Forms Scatter and Waveform Graph .NET Control Features

This talks all about using waveform graphs and plotting and charting and scopes etc..

However, if you are going for the graph that plots the first set of hundred points and then appends the second hundred points but only shows the second hundred points then you need to change the X-Axis property Mode to be StripChart and the Range to be 0,100.  This will get the strip chart feel.

And then you just continue to use the PlotYAppendMultiple like you are doing.

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 3
(4,048 Views)