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

[entree,e_init,sortie,s_init,t]=affichage_courbe_strejc(DEF,x)
function [entree,e_init,sortie,s_init,t]=affichage_courbe_strejc(DEF,x)


NT=DEF(9);
N=DEF(8);
figure(2)
set(gcf,'color','w')
e=x(:,1);
s=x(:,2);
L=length(e);
t=(N-L:1:N-1)*DEF(4);
k=find(t<0);
plot(t',e,'b',t',s,'r')
grid on
e_init=mean(e(k));
entree=x(:,1)-e_init;
s_init=mean(s(k));
sortie=x(:,2)-s_init;
modele=get_param(gcs,'name');
bloc4=[modele,'/Permanent'];
bloc5=[modele,'/Constant5'];
set_param(bloc4,'foregroundcolor','red')
pause(0.1)
set_param(bloc5,'value','0');
D_reg_perm=max(DEF(5)/5,0.6);
n=round(D_reg_perm/DEF(4));
bloc8=[modele,'/Constant'];
set_param(bloc8,'value',num2str(n))
pause(0.1)
blocStop=[modele,'/Stop Simulation'];
set_param(blocStop,'stopfcn','[ef,sf,A]=affichage_reg_perm(DEF,x,e,s,t,ei,si);');
pause(1)

Contact us