Main Content

padv.util.getModelName

Find name of model that contains artifact

    Description

    modelName = padv.util.getModelName(artifact) returns the name of the model that contains artifact.

    This functionality requires CI/CD Automation for Simulink Check.

    Input Arguments

    collapse all

    Artifact information, specified as a padv.Artifact object.

    You can create a padv.Artifact object either by:

    • Running a built-in query. When you run a built-in query, the query returns either a padv.Artifact object or an array of padv.Artifact objects.

    • Using the padv.Artifact class.

    Example: padv.Artifact("sl_model_file",padv.util.ArtifactAddress(fullfile("02_Models","AHRS_Voter","specification","AHRS_Voter.slx")))

    Output Arguments

    collapse all

    Name of model that contains artifact, returned as a string.