Wallem89
Wallem89

Reputation: 314

Exclude Simulink Function block from code generation

I want to exclude the Simulink Function block from code generation. This means the Simulink Function blocks are in place during simulation (to keep the DiagnosticMonitorCaller block from the AUTOSAR library happy) but are excluded when Matlab is compiling the model for code generation. The reason for this is that the functions are already there and not generated from Matlab/Simulink.

The work around is to 'comment out' during compiling and building but this is not really user and subversion friendly.

Can I use another block to 'fake' the function in place during simulation or do some settings on the Simulink Function block I didn't find?

Upvotes: 2

Views: 1715

Answers (1)

Phil Goddard
Phil Goddard

Reputation: 10782

This is achieved using the Environment Controller block.

Upvotes: 0

Related Questions