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

sensib.m
h_f=figure('color','w','name','SENSIBILITE');
set(0,'currentf',h_f);
e=ecran;
ec=e/2;
ec(1)=ec(3);
ec(2)=ec(2)+ec(4)/2;
set(gcf,'position',ec)
set(gcf,'unit','normalized')
text(0.8,0.1,'OK','fontunits','normalized','fontsize',0.1,'fontweight','bold','color','r','horizontalalignment','center')
text(0.5,1,'Cliquer sur l''tage choisi','fontunits','normalized','fontsize',0.1,'fontweight','bold','color','r','horizontalalignment','center')
text(0.5,0.8,'PUIS cliquer sur OK','fontunits','normalized','fontsize',0.1,'fontweight','bold','color','r','horizontalalignment','center')
set(gca,'xcolor','w','ycolor','w')
grid off
presse = waitforbuttonpress;
if ~presse
    etage_choisi=get_param(gcb,'name');
end;
delete(gcf)
sous_systeme=['schema_filtre/',etage_choisi];
h_f=figure('color','w','name','SENSIBILITE');
set(0,'currentf',h_f);
set(gcf,'position',ec)
set(gcf,'unit','normalized')
s='Composant';
txt_comp=uicontrol(gcf,'style','text','unit','normalized',...
		'position',[0.1 0.9 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','string',s);
composant_choisi='C1';
ed_comp=uicontrol(gcf,'style','edit','unit','normalized',...
		'position',[0.5 0.9 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','max',1,...
		'string',composant_choisi,...
		'callback','composant_choisi=upper(get(ed_comp,''string''));');
txt_val=uicontrol(gcf,'style','text','unit','normalized',...
		'position',[0.5 0.5 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','string','VALEURS :');
s='min';
comp_min='10e-9';
txt_min=uicontrol(gcf,'style','text','unit','normalized',...
		'position',[0.1 0.4 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','string',s);
ed_min=uicontrol(gcf,'style','edit','unit','normalized',...
		'position',[0.3 0.4 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','max',1,...
		'string',comp_min,...
		'callback','comp_min=get(ed_min,''string'');');
s='max';
comp_max='20e-9';
txt_max=uicontrol(gcf,'style','text','unit','normalized',...
		'position',[0.1 0.3 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','string',s);
ed_max=uicontrol(gcf,'style','edit','unit','normalized',...
		'position',[0.3 0.3 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','max',1,...
		'string',comp_max,...
		'callback','comp_max=get(ed_max,''string'');');
 pas='1e-9';    
txt_pas=uicontrol(gcf,'style','text','unit','normalized',...
		'position',[0.1 0.2 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','string','pas');
ed_pas=uicontrol(gcf,'style','edit','unit','normalized',...
		'position',[0.3 0.2 0.3 0.05],'backgroundcolor','g',...
	           'foregroundcolor','b','max',1,...
		'string',pas,...
		'callback','pas=get(ed_pas,''string'');');

bouton=uicontrol(gcf,'style','push','unit','normalized',...
		'position',[0.1 0.1 0.1 0.1],...
	          'string','OK','callback',['close(h_f);','bode_sensib;']);

Contact us