Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Simulink.BlockDiagram.buildRapidAcceleratorTarget

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

Syntax

rtp = Simulink.BlockDiagram.buildRapidAcceleratorTarget(mdl)

Description

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

Input Arguments

mdl

Name or handle of a Simulink model

Output Arguments

rtp

Run-time parameter set that contains two elements:

ElementDescription
modelChecksum1x4 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
dataTypeNameThe data type name, for example, double.
dataTypeIdInternal data type identifier for use by Simulink® Coder™.
complexComplex type or real type specification. Value is 0 if real, 1 if complex.
dtTransIdxInternal data type identifier for use by Simulink Coder.
valuesAll values associated with this entry in the parameters substructure.
mapMapping structure information that correlates the values to the model tunable parameters. This structure contains the following fields.
FieldDescription
IdentifierTunable parameter name.
ValueIndicesStart and end indices into the values field, [startIdx, endIdx].
DimensionsDimension of this tunable parameter (matrices are generally stored in column-major format).

Examples

expand all

Build Rapid Accelerator Target for Model

In the MATLAB® Command Window, type:

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

rtp = 

    modelChecksum: [2.6812e+09 2.7198e+09 589261472 4.0180e+09]
       parameters: [1x1 struct]
Was this topic helpful?