Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collect more than 10,000 data points from a Tektronix oscilloscope?

I am building a MATLAB GUI to do data collection from a Tektronix DPO4104 oscilloscope (MATLAB driver here).

I am playing around with tmtool 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 this post on in CCSM 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.

As far as I can tell, the steps are:

  1. Edit driver's readwaveform function to account for the current recordLength - in my case, 100,000 points, say.
  2. Manually edit the driver's MaxNumberPoint from 10,000 to 100,000. (In my case, the default number was 0.. I changed this to 100,000).
  3. Manually edit EndingPoint. I set this to 100,000 also.
  4. Before creating a device object, set(interfaceObj, 'InputBufferLength', 2.5*recordLength), 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.
  5. Build device object and waveform object, connect() to it, and readwaveform. Profit.

I am still unable to collect more than 10,000 points, either through tmtool or through my GUI. Any help would be appreciated.

like image 505
Dang Khoa Avatar asked Dec 17 '12 20:12

Dang Khoa


2 Answers

I got ahold of a Tektronix engineer; he basically told me just to use the SCPI commands directly and skip the driver. While annoying, this might be the simplest solution.

like image 176
Dang Khoa Avatar answered Nov 19 '22 01:11

Dang Khoa


Is it possible for you to collect the data points 10,000 at a time, then save them somewhere, collect the next 10,000, append them to the saved points, repeat?

It's a work-around, sure.

like image 1
Kelli Avatar answered Nov 19 '22 02:11

Kelli