msr-consulting / exscalabar

User interface for the EXSCALABAR instrument.
http://www.msrconsults.com/ukmet-gh/exscalabar
1 stars 2 forks source link

PAS photodiode plots are all the same #106

Closed JustinLangridge closed 8 years ago

JustinLangridge commented 8 years ago

PAS photodiode waveform plots in the UI are all plotting the same channel currently.

lo-co commented 8 years ago

Bad index in ex.pas.svc.js. The offending code is as follows:

for (var k = 0; k < celldata[0].PhotoDiode.Y.length; k++) {
     var pd = [k*pdt];
     for (var j = 0; j < celldata.length; j++) {
          pd.push(celldata[index].PhotoDiode.Y[k]);
      }

       // Push the data in cell-wise
       PasData.wvfm.pd.push(pd);
}

index should be j