Main Content

simulink.compiler.configureForDeployment

ConfigureSimulink.SimulationInputobject for deployment with金宝appCompiler

Description

example

simulink.compiler.configureForDeployment(in)configures theSimulink.SimulationInputobject,in, to be compatible for deployment with金宝app®Compiler™.simulink.compiler.configureForDeploymentsets the simulation mode to Rapid Accelerator and the model parameter,RapidAcceleratorUpToDateChecktoofffor the model used inSimulink.SimulationInputobject,in, these settings ensure that the specified inputs does not require the deployed applications to be rebuilt.

Examples

collapse all

This example shows how to configure aSimulink.SimulationInputobject for deployment as a command line executable or an application withSimulink Compiler.

Create a function that you want to deploy as a standalone executable. In the function, create aSimulink.SimulationInputobject for the modelsldemo_suspn_3dof. Using thesetVariablemethod of theSimulink.SimulationInputobject, set the variableMbto 1000.

Use thesimulink.compiler.configureForDeploymentfunction to make theSimulink.SimulationInputobject compatible for deployment. Once theSimulink.SimulationInputobject is configured for deployment, simulate it with thesimcommand.

functiondeployedScript() in = Simulink.SimulationInput('sldemo_suspn_3dof'); in = in.setVariable('Mb', 1000); in = simulink.compiler.configureForDeployment(in); out = sim(in);end

Input Arguments

collapse all

ASimulink.SimulationInputobject or an array ofSimulink.SimulationInputobjects that is used to specify changes to the model for a simulation.

Example:in = Simulink.SimulationInput('vdp')

Introduced in R2020a