When I was creating a test model for you I saw that using start- and endposition was enough for the right result (in the latest version), but in version 139 and before I had to load the peak data the other way around. (much more code) With the latest version the following routine is doing the whole fill:
for (int iRow = 0; iRow <= iMaxArrayIndex; iRow++)
{
this.listScheefstand.Add(new DataPoint((int)(dataTableVormData.Rows[iRow]["length"]),
Math.Abs((int)(dataTableVormData.Rows[iRow]["flatn_error_steer"]) - MiddelsteBedekteRotor)));
meters[iRow] = (int)dataTableVormData.Rows[iRow]["length"];
for (int iMeting = iLeftsensorPLUSsideOffset; iMeting <= iRightsensorMINsideOffset; iMeting++) // sensors
{
if ((string)(dataTableVormData.Rows[iRow]["SS" + iMeting.ToString().PadLeft(2, '0')]) != "U")
{
// Covered
peaksData[iRow, iRightsensorMINsideOffset - (iMeting - 1)] =
(int)dataTableVormData.Rows[iRow]["SD" + iMeting.ToString().PadLeft(2, '0')];
}
}
}
Thanks for your help objo.