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

[MOG,DEF,P_tachy,fe]=lecture_param_2_boucles(MOGi,DEFi,P_tachyi)
function [MOG,DEF,P_tachy,fe]=lecture_param_2_boucles(MOGi,DEFi,P_tachyi)

MOG=MOGi;
DEF=DEFi;
P_tachy=P_tachyi;
synchro=get(MOG(1,15),'Value');
DEF(4)=synchro;
sn1=get(MOG(1,1),'string');
sd1=get(MOG(1,2),'string');
sn2=get(MOG(3,1),'string');
sd2=get(MOG(3,2),'string');
sfe=get(MOG(1,9),'string');
fe=str2num(sfe);
te=1/fe;
DEF(1)=te;
pve=get(MOG(1,10),'Value');
pvs=get(MOG(1,11),'Value');
pe=get(MOG(1,12),'Value');
pec=get(MOG(1,13),'Value');
courbes=pve+2*pvs+2^2*pe+2^3*pec;
DEF(7)=courbes;
sd=get(MOG(1,14),'string');
duree=str2num(sd);
DEF(2)=duree;
N=round(duree/te);
DEF(3)=N;
if synchro
    slevel=get(MOG(1,16),'string');
    DEF(5)=str2num(slevel);
    ssens=get(MOG(1,17),'string');
    DEF(6)=str2num(ssens);
else
    DEF(5)=0;
    DEF(6)=0;
end;
[MOG,DEF,P_tachy]=def_2_boucles(MOG,sn1,sd1,sn2,sd2,DEF);

Contact us