image thumbnail

XY Text Writer

by

 

Uses the 33522A waveform generator to write text on scope screen. Turns scope into message board.

vec2arbstring(arb_vec, arb_name, channel)
function arb_string = vec2arbstring(arb_vec, arb_name, channel)
%This function takes a vector and converts it to a string that can be
%loaded into GF as an arb

%create arb header with arb name
if channel == 1
    arb_string = ['SOUR1:DATA:ARB ' arb_name ', '];
else
    arb_string = ['SOUR2:DATA:ARB ' arb_name ', '];
end

%build arb and command
for i = 1:length(arb_vec)
    if i ~= length(arb_vec)
        arb_string = [arb_string num2str(arb_vec(i)) ', '];
    else
        arb_string = [arb_string num2str(arb_vec(i)) ';'];
    end
end

%print arb command
%fprintf('%s\n',arb_string);

end

Contact us