10-19-2014 09:15 PM
Hi Sir :
I use VS2013 C# and measurement 2012 for my project.
In my project, there are five plots in waveformgraph.
So, there are five arrays I want to plot every 80ms and the numbers of element in array are 400.
Each point stands for 200us and I want my screen fullfill with 40 seconds, so I set the xAxis range to 0~200000.
And the range of yAxis is -100000~100000.
So, I call PlotYMultiple Method (Double[,], DataOrientation, Double, Double) every 80ms.
Below is my code to test if what I think is correct.
The interval of timer1 is 80ms.
double[,] tmp = new double[1,400];
int count = 0;
private void timer1_Tick(object sender, EventArgs e)
{
for(int i=0; i<400; i++)
{
tmp[0,i] = 6000;
}
waveformGraph1.PlotYMultiple(tmp,NationalInstruments.UI.DataOrientation.DataInRows,count*400,1);
count++;
}
However, the result I get is not correct.
Could you give me some suggestion?
Best regards,
Marcus
11-02-2014 07:30 PM - edited 11-02-2014 07:40 PM
Hi Marcus,
There is a page giving a couple of tips for graph/chart plotting, including"Optimizing the Measurement Studio Windows Forms Complex Graph .NET Control". That might be help to you.
http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/usingninetcomplexgraphwinform...