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

stop_simulation_tournant_eventuellement.m
[tim,~,~,drv,slice,perf,~,~,mach]=rttool('Read',0,'Timers');
if ~isempty(tim)
    for kdrv=drv
        [desc,a,b,addr,opt]=rttool('Read',kdrv,'Description');
    end;
    [per,~,~,run]=rttool('Read',tim,'Period');
    if run
        set_param(b,'simulationcommand','stop')
    else
        set_param(b,'simulationcommand','disconnect')
    end
    pause(0.1)
    close_system(b,0)
end;

Contact us