Main Content

Simulink.BlockDiagram.buildRapidAcceleratorTarget

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

Description

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

example

Examples

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.

    FieldDescription
    dataTypeName

    The data type name, for example, double.

    dataTypeId

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

    complex

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

    dtTransIdx

    Internal data type identifier for use by Simulink Coder.

    values

    All values associated with this entry in the parameters substructure.

    map

    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