Main Content

slreportgen.utils.isModelLoaded

Check if model is loaded

Description

tf = slreportgen.utils.isModelLoaded(model) tests whether the input Simulink® model is loaded into memory.

example

Examples

collapse all

load_system("sf_car")
tf = slreportgen.utils.isModelLoaded("sf_car")
tf = logical
   1

In this case, the sf_car model is loaded.

Input Arguments

collapse all

Model to check for being loaded, specified as a string or character array of the model path or handle.

Output Arguments

collapse all

Whether input model is loaded into memory, returned as 1 (true) if the input model is loaded. Otherwise, it returns 0 (false).

Version History

Introduced in R2018b