Main Content

slreportgen.utils.isModelCompiled

Check if model is compiled

Description

example

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

Examples

Check If Model Is Compiled

load_system('slrgex_sf_car')
tf = slreportgen.utils.isModelCompiled('slrgex_sf_car')
tf =

  logical

   0

In this case, the slrgex_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).

Introduced in R2018b