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

[DEF,NC,DC,fe]=lecture_param_num(MOG,DEFi,NCi,DCi);
function [DEF,NC,DC,fe]=lecture_param_num(MOG,DEFi,NCi,DCi);

DEF=DEFi;
NC=NCi;
DC=DCi;
synchro=get(MOG(1,15),'Value');
DEF(4)=synchro;
NC=get(MOG(1,1),'string');
DC=get(MOG(1,3),'string');
sfe=get(MOG(1,9),'string');
fe=str2num(sfe);
te=1/fe;
DEF(1)=te;
DEF(8)=te/100;
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=floor(duree/te);
DEF(3)=N+1;
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;




Contact us