Main Content

rtw.asap2MergeMdlRefs

Generate single A2L file for model by merging A2L files generated for top model and referenced models

rtw.asap2MergeMdlRefs function is no longer available to use. You can coder.asap2.export function instead.

coder.asap2.export function allows you to generate a single ASAP2 file with the contents of the top and the referenced models or generate ASAP2 files separately for each model. You can use coder.asap2.merge (Embedded Coder) function to merge ASAP2 files and it also supports merging ASAP2 files generated from external tools.

Description

[status, info] = rtw.asap2MergeMdlRefs(TopModel, FileName) generates a single A2L file for TopModel by merging the A2L files of the top model and referenced models, saving the single A2L file as FileName.a2l.

example

Examples

collapse all

Generate a single A2L file for the model by merging A2L files generated for referenced models.

% merge A2L files into single A2L file and save with custom name
[status, info] = rtw.asap2MergeMdlRefs('modelName','modelasap.a2l')
status = 
  logical 
    0

info = 
  0*0 empty char array

Input Arguments

collapse all

Name of the model.

Example: 'mymodel', 'systemModel'

Custom name for the generated A2L file.

Example: 'modeldata.a2l', 'systemdata.a2l'

Output Arguments

collapse all

Outputs the status of the A2L file merge. 0 indicate that the A2L file merge was successful and 1 indicates it was not.

Outputs the list of objects missed while merging the top model A2L file and the referenced model A2L file.

Version History

Introduced in R2012a