Here are some programs to help with getting waveform data from [some] Tek oscilloscopes by http, and reading it into Matlab/Octave arrays.
Generally, getting even some millions of samples over ethernet takes only a second or so by "internal" data format, instead of many many seconds if requesting the data in comma-separated-variable/CSV/"spreadsheet" format.
double( typecast( urlget(URL), 'uint8' ) )
; there was
a problem with Matlab's urlread interpreting the data as utf8 characters.
See the file contents or help, for options and to change the
instrument address to suit your own.
get_tek_waveform_data.m
, but it
reads a local "internal"-format file saved from the oscilloscope,
instead of reading directly from the oscilloscope.
It should work with Matlab or Octave, and is tested on just TDS3052 and DPO4102B.
The full invocation is [x,y,h] = read_tekisf('filename.isf')
.
It contains parts of a [substantially modified] file from `matlab central',
as described in the commenting.
'http://INSTRUMENT.INTERNET.ADDRESS/getwfm.isf?command=select:ch1 on&command=save:waveform:fileformat internal&wfmsend=Get'
.
One can also use a webbrowser to the instrument's address, to download
the file manually.
(The get_tek_waveform_data.m
file could be cut to give
just the functionality of this shell-script, but in Matlab instead.)
See the earlier page on just the TDS3052 for more about the origin of the above programs. Those older ones are now superseded by the above. E.g. the older ones interpreted the end of header in a way only valid for the exact 10k samples of 2 bytes each, true for the TDS3052.
If only companies making instruments (and general hardware) would provide
details and open source-code / high-level scripts, it would make things a
lot easier for a lot of people! But it must be admitted, this web
interface is fairly transparent compared to some other products.
[an error occurred while processing this directive]
Page started: 2015-07-24
Last change: 2015-07-25