Simulink.sfunction.Analyzer Class
Namespace: Simulink.sfunction
Superclasses:
Create S-function analyzer object
Description
This class enables you to perform checks on S-functions within a model or a library. These checks include MEX compiler setup check, source code check, MEX-file check, parameter robustness check for S-functions. The check result can be accessed either from a MATLAB® structure or an HTML report.
The S-function analyzer checks the source code of the S-functions based on the S-function names. The S-function source code can be automatically included in the analysis if the source file is a single C or CPP file in the MATLAB path that has the same name as the S-function. Otherwise, the build information can be specified through the S-function Analyzer programmatic interface. If no source code is available on the specified path, the analysis is skipped.
Construction
creates a sfunAnalyzer
= Simulink.sfunction.Analyzer(mdl
)Simulink.sfunction.Analyzer
object with the model you
specify. In this case, the source code for the S-function can be automatically included
in the analysis if the source code file is a single C or CPP file in the MATLAB path that has the same name as the S-function. For example, if the
specified model contains an S-function called mysfun
, and the source
file for mysfun
is a single file mysfun.c
in the
MATLAB path, a Simulink.sfunction.analyzer.BuildInfo
object is
automatically created and included in the analysis.
creates a sfunAnalyzer
= Simulink.sfunction.Analyzer(mdl
,'BuildInfo',{bdInfo
})Simulink.sfunction.Analyzer
object with the model and a
Simulink.sfunction.analyzer.BuildInfo
object named
bdInfo
.
creates a sfunAnalyzer
= Simulink.sfunction.Analyzer(mdl
,'Options',{opts
})Simulink.sfunction.Analyzer
object with the model and a
Simulink.sfunction.analyzer.Options
object named
opts
.
Input Arguments
Methods
generateReport | Generate an HTML report of S-function checks |
run | Perform checks on S-functions |
Version History
Introduced in R2017b