Patent ID: 8510708

Claim:
A method executed by a processor for optimizing a control program for actuators, the control program including a first function for controlling a first actuator, the control program having a plurality of graphical model units including a first model unit, the first model unit, first program lines and a first parameter being allocated to the first function, comprising the steps of: generating an instrumented program code for a test control program; repeatedly processing, the test control program using predefined input values and based on the result of said processing, allocating a value to the first parameter; storing the value allocated to the first parameter in a memory area allocated to the first model unit; generating an optimized control program having second program lines allocated to the first function; reading the value allocated to the first parameter; comparing the value allocated to the first parameter with a predefined threshold value and based on said comparing, determining whether the second program lines allocated to the first function are tied in directly to the control program or are tied in by a subprogram retrieval.