Thread Subject:
Matlab/Simulink files, order of execution

Subject: Matlab/Simulink files, order of execution

From: ernest

Date: 20 Jul, 2012 13:29:19

Message: 1 of 3

What determines the sequence of execution of matlab/simulink files? Specifically, how does one specify initialization files, *.m files, to be executed first? This is a non-realtime single task simulation.

Subject: Matlab/Simulink files, order of execution

From: Phil Goddard

Date: 20 Jul, 2012 21:16:15

Message: 2 of 3

Have a look at the model callback functions
http://www.mathworks.com/help/toolbox/simulink/ug/f4-122589.html

In particular it looks like you want either the InitFcn or StartFcn (which executed as subtly different times).

Phil.

Subject: Matlab/Simulink files, order of execution

From: ernest

Date: 24 Jul, 2012 12:59:08

Message: 3 of 3

"Phil Goddard" <phil@goddardconsulting.ca> wrote in message <juchqv$p0f$1@newscl01ah.mathworks.com>...
> Have a look at the model callback functions
> http://www.mathworks.com/help/toolbox/simulink/ug/f4-122589.html
>
> In particular it looks like you want either the InitFcn or StartFcn (which executed as subtly different times).
>
> Phil.

Thanks for getting me on right track. I generated the Manifest file and got the Callbacks by selecting the option.

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
simulink Phil Goddard 20 Jul, 2012 17:19:17
execution order ernest 20 Jul, 2012 09:34:18
rssFeed for this Thread

Contact us