A good way to "comment out" Simulink blocks is to use a switch block
whose control port is driven by a global constant value (parameter).
Say PARA=1 if you want to have this Simulink block in your code and
PARA=0 if you want to comment it out.
Choose the threshold of your switch w.r.t the value of PARA.
The first branch of the switch should pass the original signal to the
Simulink block you want to have. The other should end at a terminator
block. In this case, no code is executed for the Simulink block you
want to comment out.
And if you use a code generator, the code generator can decide in
advance, whether you want to generate code for this block or not
(depending on the value of PARA).
Hope you got the idea?!
Kind regards,
Ingo Stuermer
<http://www.ichmaschine.de>