Thread Subject:
simulink open_system

Subject: simulink open_system

From: ben harper

Date: 17 Feb, 2010 08:35:08

Message: 1 of 4

i can open a simulink file with
"open_system" command.

I want to see if the simulink model is opened?
how can i check whether the mdl file is opened or not?

thank you.

Subject: simulink open_system

From: Jason Retik

Date: 17 Feb, 2010 16:51:23

Message: 2 of 4

openModels = find_system('SearchDepth', 0)

openModels will be a cell array of all the currently opened models. You can
use the STRCMP function on openModels to check wheter a particular model is
open.

Jason

"ben harper" <controlusc@gmail.com> wrote in message
news:hlg9ns$cc2$1@fred.mathworks.com...
>i can open a simulink file with
> "open_system" command.
>
> I want to see if the simulink model is opened?
> how can i check whether the mdl file is opened or not?
>
> thank you.

Subject: simulink open_system

From: Gavin Walker

Date: 17 Feb, 2010 22:39:40

Message: 3 of 4

"ben harper" <controlusc@gmail.com> wrote in message
 news:hlg9ns$cc2$1@fred.mathworks.com...
>i can open a simulink file with
> "open_system" command.
>
> I want to see if the simulink model is opened?
> how can i check whether the mdl file is opened or not?

Try "bdIsLoaded"

Gavin

Subject: simulink open_system

From: Seth Popinchalk

Date: 18 Feb, 2010 06:00:19

Message: 4 of 4

"Gavin Walker" <gwalker@nospam-mathworks.com> wrote in message <hlhr7e$c19$1@fred.mathworks.com>...
> "ben harper" <controlusc@gmail.com> wrote in message
> news:hlg9ns$cc2$1@fred.mathworks.com...
> >i can open a simulink file with
> > "open_system" command.
> >
> > I want to see if the simulink model is opened?
> > how can i check whether the mdl file is opened or not?
>
> Try "bdIsLoaded"
>
> Gavin
>

I added a little more to this with the following blog post:

http://blogs.mathworks.com/seth/2010/02/18/is-that-model-already-open/

Leave a comment if that is helpful.
Seth

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
blog Seth Popinchalk 18 Feb, 2010 01:04:11
simulink ben harper 17 Feb, 2010 03:39:06
open_system ben harper 17 Feb, 2010 03:39:05
rssFeed for this Thread

Contact us