Main Content

linux.utils.migrateDds2Adaptive

Convert DDS blockset model to AUTOSAR Adaptive model

Since R2022b

    Description

    example

    linux.utils.migrateDds2Adaptive(DDS_model_name) converts the DDS blockset model DDS_model_name to AUTOSAR Adaptive model and saves it as DDS_model_name_adaptive in the current working directory. It also creates the <DDSdict_name>_adaptive.sldd data dictionary.

    example

    linux.utils.migrateDds2Adaptive(DDS_model_name,Name=Value) converts the DDS blockset model DDS_model_name to AUTOSAR Adaptive model with one or more "Name=Value" arguments. For example, you can specify a name to save the converted model.

    Examples

    collapse all

    Open a DDS Blockset model.

    Use the command to convert the model.

    [adaptiveModelName, adaptiveDictName]=linux.utils.migrateDds2Adaptive(<modelName>)
    adaptiveModelName = 
    '<modelName>_adaptive'
    adaptiveDictName = 
    '<slddName>_adaptive.sldd'
    

    You can see an AUTOSAR Adaptive model and Simulink® data dictionary gets created in the same folder.

    Input Arguments

    collapse all

    Specify the name of the DDS blockset model to be converted to AUTOSAR Adaptive model.

    Example: my_dds_model

    Name-Value Arguments

    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.

    Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

    Example: linux.utils.migrateDds2Adaptive('ex_positionestimator', AdaptiveModelName='ex_positionestimator_adaptive',DictionaryName='adaptive_data_dictionary') converts the ex_positionestimator model into AUTOSAR Adaptive model and saves it as ex_positionestimator_adaptive and creates a new data dictionary for Adaptive version of the model and save it as adaptive_data_dictionary.

    Specify a name to save the converted model.

    Example: AdaptiveModelName='my_adaptive_model'

    Specify a name to save the data dictionary for the converted model.

    Example: DictionaryName='adaptive_data_dict'

    Tips

    DDS Blockset models uses broadcasting way of communication and AUTOSAR adaptive models uses locator based communication. In order to establish communication between AUTOSAR adaptive and DDS Blockset models,

    • Set the Code Generation > Build process > Build configuration to Specify.

    • Specify the Code Generation > Build process > Toolchain details > Defines as -DDO_NOT_USE_LOCATORS.

    Version History

    Introduced in R2022b