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:
reentrant code Matlab Coder

Subject: reentrant code Matlab Coder

From: Chris

Date: 29 Apr, 2013 04:57:11

Message: 1 of 2

I've been using the Coder project graphical interface (2013a). I need to enable reentrant code generation and found this in the 2013a Coder documentation:

_______
You enable generation of reentrant code using a code generation configuration
object.
1. Create a configuration object.
e = coder.config('exe', 'ecoder', true);
2 Enable reentrant code generation.
e.MultiInstanceCode = true;
Alternatively, you can set this parameter using the MATLAB Coder Project
Settings dialog box. On the Interface pane , select Generate reusable code
_______

However I can't see the 'Generate reusable code' option anywhere in the project settings panels. What am I missing?

Chris

Subject: reentrant code Matlab Coder

From: Bill Chou

Date: 17 Dec, 2013 14:30:31

Message: 2 of 2

Hi Chris,

This reply is several month old, but I just came across your question. Posting an answer for others who may stumble upon this question.

Reentrant code is enabled if you have both MATLAB Coder and Embedded Coder. The steps (and project setting) you mentioned below will work then.

More info here: http://www.mathworks.com/help/ecoder/ug/generating-reentrant-code-from-matlab-code.html#bsv2h2j-4


Bill Chou
MathWorks

"Chris " <data.mule@gmail.com> wrote in message <klkuj7$bb0$1@newscl01ah.mathworks.com>...
> I've been using the Coder project graphical interface (2013a). I need to enable reentrant code generation and found this in the 2013a Coder documentation:
>
> _______
> You enable generation of reentrant code using a code generation configuration
> object.
> 1. Create a configuration object.
> e = coder.config('exe', 'ecoder', true);
> 2 Enable reentrant code generation.
> e.MultiInstanceCode = true;
> Alternatively, you can set this parameter using the MATLAB Coder Project
> Settings dialog box. On the Interface pane , select Generate reusable code
> _______
>
> However I can't see the 'Generate reusable code' option anywhere in the project settings panels. What am I missing?
>
> Chris

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