func Begin(){ TraceNumber = 1; /* this is the trace number of the first trace */ } func OnLineHeader(){ nsamp = LH.NumSmp; /* pick up number of samples */ output(LH); /* output the line header */ } func OnTrace(){ if(Tr.PrTrNm != TraceNumber){ /* if trace number is not sequential */ YT = Tr; /*assign trace to temporary trace */ for(i=1;i