Thread Subject: How to exist Matlab while a simulation is running

Subject: How to exist Matlab while a simulation is running

From: Hong

Date: 13 Jan, 2009 23:24:02

Message: 1 of 4

Hello, all,

I run into a problem of Matlab/Simulink as following.

Usually I used m file to run the Simulink model. If the excution of the m file (which means to run simulink model) is terminated by Ctrl+C, the exist of matlab (normal exist, try to close matlab) will bring about a message box with following information:

'Cannot close the model 'xxxxxx' when it is being compiled or while the simulation is running'

How can I avoid this without shutting down Matlab forcefully? Currently, I used Window 'task manager' to kill the matlab process in above senario.

Thanks,
Hong

Subject: How to exist Matlab while a simulation is running

From: Phil Goddard

Date: 13 Jan, 2009 23:40:03

Message: 2 of 4


try
>> nameOfYourModel([],[],[],'term');

Phil.

Subject: How to exist Matlab while a simulation is running

From: Heinz

Date: 18 Jan, 2012 08:34:09

Message: 3 of 4

Is there a way to get a list of the running simulink models?

I would really appreciate a program that would do about the following:

List = ListAllrunningsimulinkmodels
for als Elements of List
    Term this SimulinkModel
end

Subject: How to exist Matlab while a simulation is running

From: Heinz

Date: 18 Jan, 2012 08:41:09

Message: 4 of 4

is there any possibility to get a list of the running processes?

I would really appreciate a function, which is capable to term all running simulink models.

e.g. as in

List = ListAllRunningSimulinkModels
for all elements of List
    Term them
end

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
matlab simulink... Hong 13 Jan, 2009 18:25:04
rssFeed for this Thread

Contact us at files@mathworks.com