Main Content

Simulink.VariantConfigurationData.getFor

(To be removed) Get the variant configuration data object associated with a model

    getFor will be removed in a future release. Use Simulink.VariantManager.getConfigurationData instead.

    Description

    vardatObj = Simulink.VariantConfigurationData.getFor(modelName) returns the variant configuration data object for a model. If no object is associated with the model, then [] is returned.

    Examples

    collapse all

    open_system(model);
    Simulink.VariantConfigurationData.getFor(model)

    Input Arguments

    collapse all

    Model name specified as character vector.

    Example: "slexVariantManagement"

    Data Types: char

    Output Arguments

    collapse all

    Variant configuration data object associated with the model, returned as object of Simulink.VariantConfigurationData class.

    Version History

    Introduced in R2013b

    collapse all