Main Content

systemcomposer.exportToAUTOSARArchitecture

Export current model to new AUTOSAR architecture model

Since R2023b

    Description

    systemcomposer.exportToAUTOSARArchitecture(srcModelName,dstModelName,PlatformKind) exports architecture model specified by srcModelName to AUTOSAR architecture model specified by dstModelName in the platform PlatformKind and saves the generated AUTOSAR architecture model in the current folder.

    example

    systemcomposer.exportToAUTOSARArchitecture(srcModelName,dstModelName,PlatformKind,Name=Value) saves the generated AUTOSAR architecture model in the current folder with additional options specified by one or more name-value arguments.

    example

    Examples

    collapse all

    Create an architecture model named myArchitectureModel, then export the model to a new AUTOSAR classic architecture model.

    model = systemcomposer.createModel('myArchitectureModel','Architecture');
    save(model);
    systemcomposer.exportToAUTOSARArchitecture('myArchitectureModel',...
                'myAUTOSARArchitectureModel','Classic');

    Create an architecture model, then export the model to a new AUTOSAR adaptive architecture model and save the new model in a specified folder.

    model = systemcomposer.createModel('myArchitectureModel','Architecture');
    save(model);
    systemcomposer.exportToAUTOSARArchitecture('myArchitectureModel',...
        'myAUTOSARArchitectureModel','Adaptive',TargetFolder='./System');
    

    Input Arguments

    collapse all

    Name of source model, specified as a character vector or string.

    Example: 'myArchitectureModel'

    Data Types: char | string

    Name of destination model, specified as a character vector or string.

    Example: 'myAUTOSARArchitectureModel'

    Data Types: char | string

    AUTOSAR platform kind, specified as 'Adaptive' or 'Classic'.

    Data Types: char | string

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1,Value1,...,NameN,ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: systemcomposer.exportToAUTOSARArchitecture('myArchitectureModel',... 'myAUTOSARArchitectureModel','Adaptive',TargetFolder='./System',... ConfigureBehaviorModels=true)

    Location of generated AUTOSAR architecture model file, specified as a character vector or string. The function places the generated model files in this folder.

    Example: systemcomposer.exportToAUTOSARArchitecture('myArchitectureModel',... 'myAUTOSARArchitectureModel','Classic',TargetFolder='./System');

    Data Types: char | string

    Option to configure behaviors models, specified as 1 (true) or 0 (false). Configuring behavior models changes and saves the original model.

    Example: systemcomposer.exportToAUTOSARArchitecture('myArchitectureModel',... 'myAUTOSARArchitectureModel','Classic',ConfigureBehaviorModels=true)

    Data Types: logical

    More About

    collapse all

    Version History

    Introduced in R2023b