Main Content


Build Rapid Accelerator target for model and return run-time parameter set



rtp = Simulink.BlockDiagram.buildRapidAcceleratorTarget(mdl) builds a Rapid Accelerator target for model, mdl, and returns run-time parameter set, rtp.


collapse all

In the MATLAB® Command Window, type:

rtp = Simulink.BlockDiagram.buildRapidAcceleratorTarget('f14')
### Building the rapid accelerator target for model: f14
### Successfully built the rapid accelerator target for model: f14

rtp = 

    modelChecksum: [2.6812e+09 2.7198e+09 589261472 4.0180e+09]
       parameters: [1x1 struct]

Input Arguments

collapse all

Name or handle of a Simulink model

Example: 'modelName'

Output Arguments

collapse all

Run-time parameter set that contains two elements:

  • modelChecksum– 1x4 vector that encodes the structure of the model.

  • parameters– A structure of the tunable parameters in the model. This structure contains the following fields.


    The data type name, for example, double.


    Internal data type identifier for use by Simulink® Coder™.


    Complex type or real type specification. Value is 0 if real, 1 if complex.


    Internal data type identifier for use by Simulink Coder.


    All values associated with this entry in the parameters substructure.


    Mapping structure information that correlates the values to the model tunable parameters. This structure contains the following fields:

    • Identifier: Tunable parameter name.

    • ValueIndices: Start and end indices into the values field, [startIdx, endIdx]

    • Dimensions: Dimension of this tunable parameter (matrices are generally stored in column-major format).

Version History

Introduced in R2012b