argout 
0135         outdata(floor(acq.samples_acquired+1):floor(acq.samples_acquired+length(data))) = data(:);
0136     <span class="keyword">end</span>
0137 
0138     <span class="keyword">if</span> acq.restart;
0139        acq.restart = 0;
0140        acq.spectra = [];
0141        acq.times = [];
0142     <span class="keyword">end</span>
0143 
0144     data=conv(h,data);
0145     data=sign(data-acq.threshold);
0146 
0147     <span class="comment">% Calculate spectrogram of data snippet</span>
0148     <s