Documentation

Deployment

Prepare a model for deployment

Prepare a Simscape™ Multibody™ for code generation with Simulink® Coder™ software, for example, to run a simulation in accelerator mode. You can set individual block parameters as Compile-time (default) or Run-time. See Code Generation Setup for information on how to prepare a model for code generation. See Generate Code for a Multibody Model for a specific example based on a simple four-bar model.

Topics

Code Generation Applications

Overview of code generation from Simscape Multibody models.

Code Generation Setup

Solver and target selection for code generation from Simscape Multibody models.

Generate Code for a Multibody Model

Set up a Simscape Multibody model for code generation.

Was this topic helpful?