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_smith,P_ret,fe]=lecture_param_smith(MOGi,DEFi,P_smithi,P_reti)
function [MOG,DEF,P_smith,P_ret,fe]=lecture_param_smith(MOGi,DEFi,P_smithi,P_reti)

MOG=MOGi;
DEF=DEFi;
P_smith=P_smithi;
P_ret=P_reti;
synchro=get(MOG(1,15),'Value');
DEF(4)=synchro;
snr=get(MOG(1,1),'string');
sdr=get(MOG(1,2),'string');
sng=get(MOG(3,1),'string');
sdg=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_smith,P_ret]=def_smith(MOG,snr,sdr,sng,sdg,DEF);

Contact us