From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotYMultiple

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

 

 
0 Kudos
Message 1 of 2
(4,637 Views)

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...

 

 

0 Kudos
Message 2 of 2
(4,498 Views)