On the Generate Code page, click the
Generate arrow .
Set Build type to one of the following:
Source Code
Static Library (.lib)
Dynamic Library (.dll)
Executable (.exe)
Click More Settings.
On the Memory tab, select the Generate re-entrant code check box.
Create a code configuration object for 'lib'
, 'dll'
,
or 'exe'
. For example:
cfg = coder.config('lib'); % or dll or exe
Set the MultiInstanceCode
property
to true
. For example:
cfg.MultiInstanceCode = true;