public void addData(DataChannel c) { try { int col = 1; addLabel(lineOffset, 0, c.toString() + " Time (ms)"); addLabel(lineOffset + 1, 0, c.toString() + " Value"); for (Object o : c.getSeries().getItems()) { XYDataItem i = (XYDataItem) o; addNumber(lineOffset, col, i.getXValue()); addNumber(lineOffset + 1, col, i.getYValue()); col++; } } catch (RowsExceededException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (WriteException e) { // TODO Auto-generated catch block e.printStackTrace(); } lineOffset += 2; }