Main Content
padv.util.closeModelsLoadedByTask
Close models loaded by task
Description
padv.util.closeModelsLoadedByTask(PreviouslyLoadedModels =
closes models that were loaded by the current task. The function determines which models the
task loaded by comparing the current list of loaded models to a list of previously loaded
models, modelList
)modelList
. The function uses
close_system(model,0)
to close the models without saving.
Use this function inside the run
function of a custom task to close
models loaded by the task. Note that the function does not close models that are open in the
Simulink® Editor.
This functionality requires CI/CD Automation for Simulink Check.