| Contents | Index |
switchTarget('config_set',
'sys_tgt_file', target_options)
switchTarget('config_set', 'sys_tgt_file', target_options) specifies a system target file for the configuration set that you specify.
config_set |
Handle to the active configuration set for the model. |
sys_tgt_file |
String that specifies a system target file. |
Select an ert.tlc system target file for the active configuration set:
% Get the active configuration set for 'model' cs = getActiveConfigSet(model); % Define a system target file stf = 'ert.tlc'; % Change the system target file for the configuration set. switchTarget(cs,stf,[]);
Specify an ert.tlc system target file and target options for the active configuration set:
% Get the active configuration set for 'model' cs = getActiveConfigSet(model); % Define a system target file stf = 'ert.tlc'; % Specify target options tgtOpt.TemplateMakefile = 'grt_default_tmf'; tgtOpt.TLCOptions = '-aVarName=1'; tgtOpt.MakeCommand = 'make_rtw'; tgtOpt.Description = 'my target'; % Change the system target file and target options % for the configuration set. switchTarget(cs,stf,tgtOpt);
To select system target files using the Configuration Parameters dialog box:
In your model, open the Configuration Parameters dialog box.
Navigate to the Code Generation > General pane.
Specify the System target file.
Optionally specify , Make command, and TLC options.
Click Apply.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |