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,x,X,K]=fft_reel_deux_voie(MOGi,DEFi)
function [MOG,DEF,x,X,K]=fft_reel_deux_voie(MOGi,DEFi)

DEF=DEFi;
m=DEF(9);
te=DEF(10);
MOG(1:2,:)=MOGi(1:2,:);
MOG(3:4,:)=zeros(2,7);
fe=1/te;
N=2^m;
x=zeros(1,N);
X=x;
K=0:1:N-1;
figure(1)
e=ecran;
if e(1)<0
    e(1)=0;
end;
set(gcf,'position',e)
set(gcf,'unit','normalized','color','w')
grid off
set(gca,'xcolor','w','ycolor','w')
text(0.5,0.95,'ACQUISITION D''UN SIGNAL REEL (deux voies)','color','r','fontunits','normalized','fontsize',0.03,'fontweight','bold',...
    'horizontalalignment','center','verticalalignment','middle')
synchro=0;
texte={'';'OUI';'NON'};  
txt=uicontrol(gcf,'style','text','unit','normalized',...
		            'position',[0.1 0.8 0.4 0.05],'backgroundcolor','w',...
	                'foregroundcolor','r','fontunits','normalized','fontsize',0.5,'fontweight','bold','string','Synchronisation ?');                
MOG(3,2)=uicontrol(gcf,'style','popupmenu','unit','normalized',...
                    'position',[0.1,0.75,0.4,0.05],'backgroundcolor','y',...
                    'foregroundcolor','b','fontunits','normalized','fontsize',0.5,'fontweight','bold','string',texte,...
                    'callback','synchro=get(MOG(3,2),''value'');DEF(6)=synchro;[MOG,DEF,x,X,K]=acquisition_signal(MOG,DEF);');       

Contact us