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

[X,K]=fft_calcul_acquis(x,DEF)
function [X,K]=fft_calcul_acquis(x,DEF)

if DEF(8)==1
    switch DEF(6)
        case 2
            bloc1='fft_acquisition_1voie_synchro/Manual Switch';
            set_param(bloc1,'maskvaluestring','0|0|off')
            set_param(bloc1,'foregroundcolor','black')
             bloc2='fft_acquisition_1voie_synchro/declenchement';
            set_param(bloc2,'foregroundcolor','white')
            save_system('fft_acquisition_1voie_synchro');
             %close_system('fft_acquisition_1voie_synchro');
            [X,K]=fft_calcul(DEF,x);
           
            
        
        case 3
            bloc1='fft_acquisition_1voie_pas_synchro/Manual Switch';
            set_param(bloc1,'maskvaluestring','0|0|off')
            set_param(bloc1,'foregroundcolor','black')
             bloc2='fft_acquisition_1voie_pas_synchro/declenchement';
            set_param(bloc2,'foregroundcolor','white')
            save_system('fft_acquisition_1voie_pas_synchro');
            %close_system('fft_acquisition_1voie_pas_synchro');
             [X,K]=fft_calcul(DEF,x);
            
           
    end;
elseif DEF(8)==2
    switch DEF(6)
        case 2
            bloc1='fft_acquisition_2voie_synchro/Manual Switch';
            set_param(bloc1,'maskvaluestring','0|0|off')
            set_param(bloc1,'foregroundcolor','black')
             bloc2='fft_acquisition_2voie_synchro/declenchement';
            set_param(bloc2,'foregroundcolor','white')
            save_system('fft_acquisition_2voie_synchro');
            [X,K]=fft_calcul(DEF,x);
            
            
        
        case 3
            bloc1='fft_acquisition_2voie_pas_synchro/Manual Switch';
            set_param(bloc1,'maskvaluestring','0|0|off')
            set_param(bloc1,'foregroundcolor','black')
             bloc2='fft_acquisition_2voie_pas_synchro/declenchement';
            set_param(bloc2,'foregroundcolor','white')
            save_system('fft_acquisition_2voie_pas_synchro');
             [X,K]=fft_calcul(DEF,x);
            
           
    end;
end;

Contact us