image thumbnail

XY Text Writer



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

%Store first string
string_in ='33S00 SERIES   Garfield   ';

%Get string length and set initial x and y plot placement
str_len = length(string_in);
str_len = int32(str_len);
x_place = .5;
y_place = 8.5;

%Check if string is 26 chars or less
if str_len <= 26
    %character placement in xy graph
    [y x] = Build_XY_Arbs(string_in,str_len,x_place,y_place);
    %sample in Matlab scatter plot
    %send to csv
    csv_name = ['Innovation.csv'];
    dlmwrite(csv_name, z', 'coffset', 0, 'roffset', 0);
    %normalize for fg/awg xmax=18.3 ymax=11.1
    x = x/18.3;
    y = y/18.3;
    %create both the x and y arb strings
    %y_arb = vec2arbstring(y,'fw_y',1);
    %x_arb = vec2arbstring(x,'fw_x',1);

    %send the arbs to garfield

    disp('The string you entered is too long. It must be 26 characters or less.');

%Store first string
%string_in ='     For        watching  ';

%sign off
fprintf('Done and outta here....\n');

Contact us