title: Collect more than 10,000 data points from a Tektronix oscilloscope?
body: <p>I am building a MATLAB GUI to do data collection from a Tektronix DPO4104 oscilloscope (MATLAB driver <a href="http://www.mathworks.com/matlabcentral/fileexchange/21781-tektronix-dpo4104-oscilloscope-driver" rel="nofollow noreferrer">here</a>). </p>
  
  <p>I am playing around with <code>tmtool</code> and with my GUI code and have found that the driver can only collect 10,000 data points, regardless of if the oscilloscope is set to show more than 10k points. I found <a href="http://www.mathworks.com/matlabcentral/newsreader/view_thread/267937" rel="nofollow noreferrer">this post on in CCSM</a> but it hasn't been terribly helpful. (I'm the last post on there if you care to read it.) I am using the DPO4104 driver, whereas this post discusses use of the DPO4100 driver, I believe.</p>
  
  <p>As far as I can tell, the steps are:</p>
  
  <ol>
  <li>Edit driver's <code>readwaveform</code> function to account for the current <code>recordLength</code> - in my case, 100,000 points, say. </li>
  <li>Manually edit the driver's <code>MaxNumberPoint</code> from 10,000 to 100,000. (In my case, the default number was 0.. I changed this to 100,000). </li>
  <li>Manually edit <code>EndingPoint</code>. I set this to 100,000 also.</li>
  <li>Before creating a device object, <code>set(interfaceObj, 'InputBufferLength', 2.5*recordLength)</code>, that is, make sure the input buffer can fit more than 100,000 points. It's recommended to use at least double the expected buffer. I used 2.5 just because.</li>
  <li>Build device object and waveform object, <code>connect()</code> to it, and <code>readwaveform</code>. Profit.</li>
  </ol>
  
  <p>I am still unable to collect more than 10,000 points, either through <code>tmtool</code> or through my GUI. Any help would be appreciated.</p>