Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Packaging compiled Simulink/SimEvents models

Subject: Packaging compiled Simulink/SimEvents models

From: Z

Date: 28 Jun, 2010 11:34:21

Message: 1 of 4

Hi,

I am not able to find any references on how to package for distribution a Simulink/SimEvents model executable, compiled using RTW RSim target. I want to install the model executable on a computer without any previously installed Matlab libraries. Any ideas?

Cheers,
Z.

Subject: Packaging compiled Simulink/SimEvents models

From: Amanda Galtman

Date: 28 Jun, 2010 12:16:27

Message: 2 of 4


"Z " <zdz@it-innovation.soton.ac.uk> wrote in message
news:i0a1bt$810$1@fred.mathworks.com...
> Hi,
>
> I am not able to find any references on how to package for distribution a
> Simulink/SimEvents model executable, compiled using RTW RSim target. I want to
> install the model executable on a computer without any previously installed
> Matlab libraries. Any ideas?
>
> Cheers,
> Z.
>

Hi,

The following references are relevant:

1) Sharing Executables for Discrete-Event Simulations
http://www.mathworks.com/access/helpdesk/help/toolbox/simevents/ug/br7pfgq-1.html
In particular, step 5 of the "model designer" step tells you which files you
need to give to the person using the other computer.

2) Prerequisites for Using Generated Code
http://www.mathworks.com/access/helpdesk/help/toolbox/simevents/ug/br53yl7-1.html
The other computer has to satisfy the prerequisites on the page above. You said
the other computer does not have any previously installed MATLAB libraries, but
in order to use the Simulink/SimEvents model executable, you will need to
install MATLAB, Simulink, and SimEvents. For installation instructions, see
http://www.mathworks.com/access/helpdesk/help/base/install/.

Hope this helps,
Amanda

Subject: Packaging compiled Simulink/SimEvents models

From: Z

Date: 30 Jun, 2010 10:13:04

Message: 3 of 4

"Amanda Galtman" <agaltman@mathworks.com> wrote in message <i0a3qr$f5b$1@fred.mathworks.com>...
>
> Hi,
>
> The following references are relevant:
>
> 1) Sharing Executables for Discrete-Event Simulations
> http://www.mathworks.com/access/helpdesk/help/toolbox/simevents/ug/br7pfgq-1.html
> In particular, step 5 of the "model designer" step tells you which files you
> need to give to the person using the other computer.
>
> 2) Prerequisites for Using Generated Code
> http://www.mathworks.com/access/helpdesk/help/toolbox/simevents/ug/br53yl7-1.html
> The other computer has to satisfy the prerequisites on the page above. You said
> the other computer does not have any previously installed MATLAB libraries, but
> in order to use the Simulink/SimEvents model executable, you will need to
> install MATLAB, Simulink, and SimEvents. For installation instructions, see
> http://www.mathworks.com/access/helpdesk/help/base/install/.
>
> Hope this helps,
> Amanda
>

Thanks for the reply Amanda. The information is useful. Does this mean though, that the end-user of the Simulink/SimEvents model executable must have a Simulink/SimEvents license. Isn't there an option to distribute the compiled executable models with some kind of runtime environment, similar to compiled .m files distributed with the Matlab Component Runtime.

Zlatko.

Subject: Packaging compiled Simulink/SimEvents models

From: Amanda Galtman

Date: 30 Jun, 2010 15:19:05

Message: 4 of 4

"Z " <zdz@it-innovation.soton.ac.uk> wrote in message <i0f5bg$n1a$1@fred.mathworks.com>...
> "Amanda Galtman" <agaltman@mathworks.com> wrote in message <i0a3qr$f5b$1@fred.mathworks.com>...
> >
> > Hi,
> >
> > The following references are relevant:
> >
> > 1) Sharing Executables for Discrete-Event Simulations
> > http://www.mathworks.com/access/helpdesk/help/toolbox/simevents/ug/br7pfgq-1.html
> > In particular, step 5 of the "model designer" step tells you which files you
> > need to give to the person using the other computer.
> >
> > 2) Prerequisites for Using Generated Code
> > http://www.mathworks.com/access/helpdesk/help/toolbox/simevents/ug/br53yl7-1.html
> > The other computer has to satisfy the prerequisites on the page above. You said
> > the other computer does not have any previously installed MATLAB libraries, but
> > in order to use the Simulink/SimEvents model executable, you will need to
> > install MATLAB, Simulink, and SimEvents. For installation instructions, see
> > http://www.mathworks.com/access/helpdesk/help/base/install/.
> >
> > Hope this helps,
> > Amanda
> >
>
> Thanks for the reply Amanda. The information is useful. Does this mean though, that the end-user of the Simulink/SimEvents model executable must have a Simulink/SimEvents license. Isn't there an option to distribute the compiled executable models with some kind of runtime environment, similar to compiled .m files distributed with the Matlab Component Runtime.
>
> Zlatko.

Yes, the end-user of the Simulink/SimEvents model executable must have a license for Simulink and SimEvents. However, running the executable does not check out that license. The difference between having and checking out a license might be important for distributed applications or for environments where multiple users share a network installation.

More generally, for any Simulink model that uses a variable-step solver, running a Rapid Simulation executable requires but does not check out a Simulink license. All SimEvents models must use a variable-step solver.

Best wishes,
Amanda

Tags for this Thread

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.

Contact us