Effacer les filtres
Effacer les filtres

How do i pause simulink for a moment ?

2 vues (au cours des 30 derniers jours)
Kelvin Oys
Kelvin Oys le 23 Jan 2013
Commenté : Gerrit le 13 Août 2018
I trying to create a continuous plotting Application Programming Interface (aka API)which keep collecting results from the stimulation produce by simulink. The problem is simulink only produce the result after it stop or pause, any idea of pausing it?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 23 Jan 2013
set_param('yourmodel','simulationcommand','pause')
see also, 'continue','stop','update',...
  7 commentaires
TAB
TAB le 29 Jan 2013
Simulink APIs works only under matlab environment. It is not possible to coontrol compiled model with these APIs. Also same is true for vice versa. Simulink APIs are not supported by matlab compiler. So they will not work with you standalone GUI.
For your reference: This relares thread and This tech doc
Gerrit
Gerrit le 13 Août 2018
Please note that the link to "This tech doc" no longer works.

Connectez-vous pour commenter.

Plus de réponses (1)

TAB
TAB le 25 Jan 2013
Instead of puasing the simulation to collect data, use run time data access methods of simulink. Using these methods data can be collected when the simulation is running.
See

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by