Thread Subject:
How to link connect the results of 2 mdl files?

Subject: How to link connect the results of 2 mdl files?

From: Long

Date: 28 Feb, 2013 14:54:06

Message: 1 of 4

Hello everyone.

I am thinking about this problem for several days but I cannot find the answer. Could you help me, please?

For example, after the simulation, in the simulink file 1st.mdl, we get the output signal A.
How to transfer signal A from file 1st.mdl to file 2nd.mdl?
(In order to make signal A become the reference signal in the simulink file 2nd.mdl?)

Thank you very much.

Subject: How to link connect the results of 2 mdl files?

From: Phil Goddard

Date: 1 Mar, 2013 16:47:07

Message: 2 of 4

See

http://www.mathworks.com/help/simulink/slref/toworkspace.html

and

http://www.mathworks.com/help/simulink/slref/fromworkspace.html

Phil.

Subject: How to link connect the results of 2 mdl files?

From: Long

Date: 2 Mar, 2013 07:22:08

Message: 3 of 4

"Phil Goddard" <phil@goddardconsulting.ca> wrote in message <kgqm2b$5fm$1@newscl01ah.mathworks.com>...
> See
>
> http://www.mathworks.com/help/simulink/slref/toworkspace.html
>
> and
>
> http://www.mathworks.com/help/simulink/slref/fromworkspace.html
>
> Phil.

Thank you very much for your reply.
So you mean that 1st step I have to export the result from simulink file A to the workspace, then 2nd step import from the workspace to the simulink B?

Subject: How to link connect the results of 2 mdl files?

From: Phil Goddard

Date: 5 Mar, 2013 06:13:08

Message: 4 of 4

Given the description in your original post then yes,

> So you mean that 1st step I have to export the result from simulink file A to the workspace, then 2nd step import from the workspace to the simulink B?

If you want to incorporate modelB into modelA (i.e. have it act as if it is a block in the model that gets simulated time step by time step just like any other block) then lookin the doc for Model Referencing.

Phil.

Tags for this Thread

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.

rssFeed for this Thread

Contact us