| Contents | Index |
Create custom code generation objectives
obj = rtw.codegenObjectives.Objective('objID')
obj = rtw.codegenObjectives.Objective('objID',
'base_objID')
obj = rtw.codegenObjectives.Objective('objID') creates an objective object, obj.
obj = rtw.codegenObjectives.Objective('objID', 'base_objID') creates an object, obj, for a new objective that is identical to an existing objective. You can then modify the new objective to meet your requirements.
| objID | A permanent, unique identifier for the objective.
|
| base_objID | The identifier of the objective that you want to base the new objective on. |
Create a new objective:
obj = rtw.codegenObjectives.Objective('ex_ram_1');
Create a new objective based on the existing Execution efficiency objective:
obj = rtw.codegenObjectives.Objective('ex_my_efficiency_1', 'Execution efficiency');

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 |