Real-Time Workshop User's Guide | ![]() ![]() |
Embedded Model Functions
The Real-Time Workshop Embedded Coder and Ada Coder targets generate the following functions:
model
_intialize
-- Performs all model initialization and should be called once before you start executing your model.model
_step(int_T tid)
-- Contains the output and update code for all blocks in your model.Otherwise you will see:
model
_output(int_T tid)
-- Contains the output code for all blocks in your model.model
_update(int_T tid)
-- This contains the update code for all blocks in your model.model
_
terminate -- This contains all model shutdown code and should be called as part of system shutdown.See Code Modules and Program Execution for complete descriptions of these functions in the context of the Real-Time Workshop Embedded Coder.
![]() | Rapid Prototyping Model Functions | Rapid Prototyping Program Framework | ![]() |