Deploy Standalone Applications
Create and deploy standalone applications
Create and deploy standalone applications with Simulink® Compiler™ to run simulations on target machines that do not have MATLAB® and Simulink installed.
You can create and deploy standalone applications written in MATLAB code or built in MATLAB App Designer. To run a standalone application, install MATLAB Runtime. For more information, see Install and Configure MATLAB Runtime.
Functions
simulink.compiler.configureForDeployment | Configure Simulink.SimulationInput object for deployment with
Simulink
Compiler (Since R2020a) |
simulink.compiler.setExternalInputsFcn | Set callback to specify data to each external root inport port block at the start of each simulation step (Since R2020b) |
simulink.compiler.setExternalOutputsFcn | Set callback to read external root outport block data after each simulation step (Since R2020b) |
simulink.compiler.setPostStepFcn | Register a callback to run after each simulation step (Since R2020b) |
simulink.compiler.genapp | Generate MATLAB App to simulate model and deploy application (Since R2020b) |
simulink.compiler.getTunableVariables | Find names of all tunable variables (Since R2021a) |
simulink.compiler.getSimulationOutput | Fetch the partial simulation output during simulation run time (Since R2022a) |
simulink.compiler.modifyParameters | Tune block parameters at runtime via workspace variables (Since R2021b) |
simulink.compiler.stopSimulation | Stop a long running simulation (Since R2020b) |
simulink.compiler.loadEnumTypes | Configure model with enum types for deployment (Since R2020a) |
exportToFMU2CS | Export Simulink model to functional mock-up unit (FMU) (Since R2020a) |
exportToFMU | Export Simulink model to functional mock-up unit (FMU) (Since R2023b) |
sim | Simulate Simulink model |
Simulink.SimulationInput | Create Simulink.SimulationInput objects to make changes to
model for multiple or individual simulations |
mcc | Compile MATLAB functions for deployment |
deploytool | Open a list of application deployment apps |
Topics
- Deploy Simulations with Tunable Parameters
Create and deploy a simulation from a MATLAB function.
- Deploy an App Designer Simulation with Simulink Compiler
Create and deploy a simulation using App Designer.
- Simulation Callbacks for Deployable Applications
Debugging tips and best practices.
- Generate, Modify and Deploy a MATLAB App for a Simulink Model
Generate a MATLAB app with the
simulink.compiler.genapp
function and deploy it. Explore options to modify the generated app. - Export Simulink Models to Functional Mock-up Units
Export Simulink models to Functional Mock-Up Units.