Hi!! i have a method that process an event, this event plots a XY point, the X axis value is a double number from 0 to infinity, the Y axis value goes from 0 to 255 incrementally, in some point of the execution (with Y axis lower of 20) it throws me an
exception :
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.windows.forms.dll
Additional information: Index outside of the limits of the matrix.
when i check the Stack Trace it shows me this:
at NationalInstruments.ComponentBase.RaiseExceptionIfDisposed()
at NationalInstruments.UI.ScatterPlot.PlotXYAppend(Double xData, Double yData)
Any idea??
this is my function code:
public void eLead(object sender, ECGEventArgs e)
{
double TimeNow = (double)(DateTime.Now.Ticks-lRefTick);
TimeNow /= (double)System.TimeSpan.TicksPerSecond;
scatterPlot2.PlotXYAppend(TimeNow,(double)e.Dato);
}
Another question, the display has the mode StripChart, while im inserting new values and the graph is moving, the tick label of the X axis blinks on odd numbers, can this be fixed??
Mensaje editado por MEMO Ramos
Mensaje editado por MEMO Ramos