pslinkrun
Run Polyspace analysis on model, system, or S-Function
Syntax
Description
[
analyzes code generated from the current system
using the configuration options associated with the current system.
It returns the location of the results folder. The current system
is the system returned by the command polyspaceFolder
, resultsFolder
]
= pslinkrunbdroot
(Simulink).
[
analyzes polyspaceFolder
, resultsFolder
]=
pslinkrun(target
)target
with
the configuration options associated with the model containing target
.
Before you run an analysis, you must:
Generate code for models and subsystems.
Compile S-Functions.
[
runs Polyspace® on C/C++ custom code included in C Caller blocks and Stateflow charts
in the model.polyspaceFolder
, resultsFolder
]
= pslinkrun('-slcc',target
)
[
analyzes polyspaceFolder
, resultsFolder
]
= pslinkrun(target
, opts
)target
using the configuration options specified in
the object opts
. It returns the location of the results folder.
[
runs Polyspace on C/C++ custom code included in C Caller blocks and Stateflow charts
in the model. The analysis uses the configuration options specified in the object
polyspaceFolder
, resultsFolder
]
= pslinkrun('-slcc', target
, opts
)opts
.
[
uses polyspaceFolder
, resultsFolder
]
= pslinkrun(target
, opts
, asModelRef
)asModelRef
to specify which type of generated code to
analyze—standalone code or model reference code. This option is useful when
you want to analyze code that is generated as model reference. Code that is
generated as model reference is intended to be called or used in other models or
code.
[
runs Polyspace on C/C++ code generated from MATLAB® code and stored in polyspaceFolder
, resultsFolder
]
= pslinkrun('-codegenfolder', codegenFolder
, opts
)codegenFolder
.
Note
Before you run Polyspace from MATLAB, you must link your Polyspace and MATLAB installations. See Integrate Polyspace with MATLAB and Simulink.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2012a