
11
Figure 3: Subsystem parameter dialog pane
3.2.3 Code Interface
Real-Time Workshop Embedded Coder cannot offer the user full control over the
generated code interface. Two options can mainly be selected, reusable code and
non-reusable code. The user often needs the code to be reused again in other
applications. A PID controller, for example, can be used in several applications
and models. When the generated code is reusable all inputs, outputs and tunable
parameters are passed on as function arguments. Tunable parameters are saved in
a structure which is used as a function argument along with the inputs and outputs
of the model.
Function return is not supported yet in Real-Time Workshop Embedded Coder.
Another approach can be used to control the interface of the generated code.
Every signal and parameter can be chosen as a global variable and in that way
non-reusable code can be generated when the user has access to the global
variables making the code reusable. This approach is not preferred by Haldex
Traction since the use of global variables is not preferred in the company code.
However in release 2007a there is a user interface to customise any step function,
see Figure 4 below.
Kommentare zu diesen Handbüchern