Working with Profiles : Setting the Target Configuration : Code Generation Options : Target Properties : Memory Initialization

Memory Initialization
Reset Global (Internal) Data

Selecting this check box enables the global data reset options:

Compile Time, Static

Enables initialization of the data in the model using static initialization at the data allocation location.

Run Time, Dynamic

Enables initialization of all the data in the model through a call to the macro RESET_DATA in the TASKINIT function.

The RESET_DATA macro uses the function memset which should be defined in the environment. If this function is not defined, you can define the macro AVOID_MEMSET and use the function rimc_mem_set which is defined in the file <profile-name>.c.

Reset User Model Data

Selecting this check box enables the user model data reset options:

Compile Time, Static

Enables initialization of the data in the model using static initialization at the data allocation location.

Run Time, Dynamic

Enables initialization of all the data in the model through a call to the macro RESET_DATA in the TASKINIT function.

The RESET_DATA macro uses the function memset which should be defined in the environment. If this function is not defined, you can define the macro AVOID_MEMSET and use the function rimc_mem_set which is defined in the file