From: Christian Komposch on
Hi,

I have a problem with Matlab Simulink R2007b. I don't want to have local stack variables in my autocode generated with RTW.

Uncheck the box "Local Block Outputs" eliminates almost every local stack variables. But there are a few left. These variables are the iteration variables of a For-Iteration-Subsystrem.

For example:

uint8_t s1_iter;

for(s1_iter = 0; s1_iter < 8; s1_iter++) {
....
}

Is there a possibility to remove them from stack and make them global?

Thanks in advance!


C. Komposch