User`s guide

Model Execution
6-21
A flow chart describing the execution of the rapid prototyping generated code
is shown below.
Figure 6-4: Rapid Prototyping Execution Flow Chart
Each block places code into specific Mdl routines according to the algorithm
that it is implementing. Blocks have input, output, parameters, states, plus
other general items. For example, in general, block inputs and outputs are
written to a block I/O structure (
rtB). Block inputs can also come from the
external input structure (
rtU) or the state structure when connected to a state
port of an integrator (
rtX), or ground (rtGround) if unconnected or grounded.
End
Integration
MdlDerivatives
MdlOutput
MdlStart
Start Execution
MdlOutput
MdlDerivatives
MdlTerminate
Execution Loop
MdlUpdate