Code covered by the BSD License  

Highlights from
Logiciels temps réel

Logiciels temps réel

by

 

Real-time software concerning the domains of the signal processing, feedback and regulation

trace_courbes_xy.m
bloc_xy=[get_param(gcs,'name'),'/XY Graph'];
m=get_param(gcb,'userdata');
u=get(m,'userdata');
x=u.XData;
y=u.YData;
h=get(figure(2),'child');
if isempty(h)
    position=0;
else
    position=position+1;
end;
set(gcf,'windowstyle','normal')
set(gcf,'position',ecran)
set(gcf,'color','w')
hold on
for k=-7.5:0.5:7.5
    plot([-10 10],[k k],':k')
end;
for k=-7:1:7
    plot([-10 10],[k k],'k')
end;
for k=-10:0.5:10
    plot([k k],[-7.5 7.5],':k')
end;
for k=-10:1:10
    plot([k k],[-7.5 7.5],'k')
end;
axis([-10 10 -7.5 7.5])
plot(x,y,'k','linewidth',2)
choix_calibre_y={'','2 V/cm','1 V/cm','0,5 V/cm','0,2 V/cm','0,1 V/cm','50 mV/cm','20 mV/cm','VAR'};
s='Calibre X';
text(-12,7.5,s,'fontunits','normalized','fontsize',0.023,'fontweight','bold')
echx=get(MOG(2,2),'value');
s=choix_calibre_y(echx);
n=get(MOG(12,3),'value');
    if n==3
        nb=get(MOG(11,3),'string');
        s=[char(s),' (F : ',nb,' pts)'];
    end;
text(-13,7-0.5*position,s)
s='Calibre Y';
text(-12,5,s,'fontunits','normalized','fontsize',0.023,'fontweight','bold')
 cal_y=get(MOG(3,2),'value');
 s=choix_calibre_y(cal_y);
 n=get(MOG(12,4),'value');
    if n==3
        nb=get(MOG(11,4),'string');
        s=[char(s),' (F : ',nb,' pts)'];
    end;
 text(-13,4.5-0.5*position,s)
title(nom,'fontunits','normalized','fontsize',0.023,'fontweight','bold')
dim=2;
 s='rglages zro :';
text(10,5,s,'fontunits','normalized','fontsize',0.023,'fontweight','bold')
n=get_param(gcs,'name');
nom_bloc=[n,'/Constant'];
z_x=get_param(nom_bloc,'value');
s=['VOIE X : ',z_x,' cm'];
text(10,4.5-0.5-0.5*(dim+1)*position,s,'color','k',...
    'fontunits','normalized','fontsize',0.023,...
    'horizontalalignment','left')
nom_bloc=[n,'/Constant1'];
z_y=get_param(nom_bloc,'value');
s=['VOIE Y : ',z_y,' cm'];
text(10,4.5-2*0.5-0.5*(dim+1)*position,s,'color','k',...
    'fontunits','normalized','fontsize',0.023,...
    'horizontalalignment','left')


Contact us