Main Content

slreportgen.utils.isModelCompiled

Check if model is compiled

Description

tf = slreportgen.utils.isModelCompiled(model) tests whether the input Simulink® model is compiled.

example

Examples

collapse all

load_system("sf_car")
tf = slreportgen.utils.isModelCompiled("sf_car")
tf = logical
   0

In this case, the sf_car model is not compiled.

Input Arguments

collapse all

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

Output Arguments

collapse all

Whether model is compiled, returned as 1 (true) if the model is compiled. Otherwise, it returns 0 (false).

Version History

Introduced in R2018b