Using Simulink    

Handling Changes in Model Structure

After you use the Simulink Accelerator to simulate a model, the MEX-file containing the compiled version of the model remains available for use in later simulations. Even if you exit MATLAB, you can reuse the MEX-file in later MATLAB or Simulink sessions.

If you alter the structure of your Simulink model, for example, by adding or deleting blocks, the Accelerator automatically regenerates the C code and updates (overwrites) the existing MEX-file.

Examples of model structure changes that require the Accelerator to rebuild include

The Simulink Accelerator displays a warning when you attempt any impermissible model changes during simulation. The warning does not stop the current simulation. To make the model alterations, stop the simulation, make the changes, and restart.

Some changes are permitted in the middle of simulation. Simple changes like adjusting the value of a Gain block do not cause a warning. When in doubt, try to make the change. If you do not see a warning, the Accelerator accepted the change.

Note that the Accelerator does not display warnings that blocks generate during simulation. Examples include divide-by-zero and integer overflow. This is a different set of warnings from those discussed previously.


  Runnning the Simulink Accelerator Increasing Performance of Accelerator Mode