Real-Time Workshop |
 |
Summary of State Storage Class Options
Table 5-8 shows, for each state storage class option, the variable declaration and MdlInitialize
code generated for a Discrete Filter block state. The block state has the user-defined state name filt_state
.
Table 5-8: State Properties Options and Generated Code
Storage Class
|
Declaration
|
Code
|
Auto
|
|
rtDWork.filt_state = 0.0;
|
Exported Global
|
|
filt_state = 0.0;
|
Imported Extern
|
|
filt_state = 0.0;
|
Imported Extern Pointer
|
|
*(filt_state) = 0.0;
|
| Block States and Simulink Signal Objects | | Storage Classes for Data Store Memory Blocks |  |