jai essaye ce code
for i = 0:100
set_param(MotionControl, 'SimulationCommand', 'start');
t = cputime;
(ligne 1) if get_param(MotionControl/MCA, 'SimulationStatus') == 'Stopped'
t1 = cputime - t;
disp(t1);
break;
end
end
mais jai une erreur sur la (ligne 1)
%% SubSystem block does not have a parameter named 'SimulationStatus'
Partager