ired = acq.samples_acquired + acq.samples_per_frame;
0116     acq.t1 = clock;
0117     elapsed = etime(acq.t1,acq.t0);
0118 
0119     <span class="comment">% Get a small snippet of data</span>
0120     <span class="keyword">if</span> ( acq.live )
0121        data = getdata( acq.ai, acq.samples_per_frame );
0122     <span class="keyword">else</span>
0123       <span class="keyword">while</span> elapsed &lt; acq.samples_acquired / acq.params.Fs
0124         pause( acq.samples_acquired / (acq.params.Fs) - elap