No BSD License  

Highlights from
Using Tektronix Open Choice with MATLAB

Using Tektronix Open Choice with MATLAB

by

 

09 Jul 2008 (Updated )

Fundamental code for Tektronix Oscilloscopes

TekBegin(r, bs, t)
% Begin TekVISA for TDS5000/6000/7000/8000 ...
% function [v] = TekBegin(r, bs, t)
% v : TekVISA Handle returned
% r : TekVISA Resource ( e.g. GPIB8::1::INSTR )
% bs : Buffer Size ( e.g. if you use CURVE QUERY, set CURVE Size for it )
% t : Timeout with unit of ms
function [v] = TekBegin(r, bs, t)
if length(r) < 1
    r = 'GPIB8::1::INSTR';
end;
v = visa('tek', r);
set(v, 'InputBufferSize', bs);
set(v, 'OutputBufferSize', bs);
set(v, 'Timeout', t);
fopen(v);
return;

Contact us