diff --git a/convertTektronix/read1.cpp b/convertTektronix/read1.cpp index 5009e5f6f0364998d694658cede9f5321421aeeb..c56e33be550c7d8edffd3d66227163686b853f7d 100644 --- a/convertTektronix/read1.cpp +++ b/convertTektronix/read1.cpp @@ -83,13 +83,14 @@ void read1() { line4.ReadLine(myfile4); if( line1.IsNull() ) break; - time = 5e-04+ (j-1000*n)*1e-01; sscanf(line1.Data(), "%lf", &1); sscanf(line2.Data(), "%lf", &2); sscanf(line3.Data(), "%lf", &3); sscanf(line4.Data(), "%lf", &4); + n=j/1000; - + time = 5e-04+ (j-1000*n)*1e-01; + A1[j-1000*n] = amp1; A2[j-1000*n] = amp2; A3[j-1000*n] = amp3;