Contenuto principale

Simulink.VariantConfigurations.getFor

R2026b

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

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

    Description

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

    Examples

    collapse all

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

    Input Arguments

    collapse all

    Model name specified as character vector.

    Example: "slexVariantManagement"

    Data Types: char

    Output Arguments

    collapse all

    Variant configurations object associated with the model, returned as a Simulink.VariantConfigurations object.

    Version History

    Introduced in R2013b

    expand all