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

regle_zero2.m
function MOG=regle_zero2(a,k,G,MOGi)

MOG=MOGi;
switch a
    case 3
        pas=1;
    case 4
        pas=-1;
    case 5
        pas=1/20;
    case 6
        pas=-1/20;
end;
zs=get_param([get_param(gcs,'name'),'/Constant',num2str(k+1)],'value');
z=str2double(zs)+pas;
n_fig=get(MOG(1,6),'name');
n_v=['   VOIE',num2str(k),' : zro = ',zs,' cm'];
zs=num2str(z);
% on met  jour le modle
set_param([get_param(gcs,'name'),'/Constant',num2str(k+1)],'value',zs);
n_v_n=['   VOIE',num2str(k),' : zro = ',zs,' cm'];
n_fig_n=strrep(n_fig,n_v,n_v_n);
% on met  jour le titre de la scope_figure
set(MOG(1,6),'name',n_fig_n);

Contact us