how to send Data to workspace
Ältere Kommentare anzeigen
How to send data to workspace continuosly whenever my simulink model has been paused by below code,,I am using a simple constant block and to workspace block
tic
open_system('');
for i=1:1:10
set_param('SampleTest','StopTime', sprintf('%d',i));
set_param('SampleTest', 'Simulationcommand', 'start')
pause(1)
set_param('SampleTest', 'Simulationcommand', 'update')
set_param('SampleTest', 'Simulationcommand', 'continue')
end
toc
2 Kommentare
Arun Badigannavar
am 7 Jan. 2013
Azzi Abdelmalek
am 8 Jan. 2013
Do you mean after 10, itterations?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Event Functions finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!