pslinkrun
R2026bRun Polyspace analysis on model, system, or S-Function
Syntax
Description
pslinkrun runs a Polyspace® analysis of the code generated from a model or subsystem by using
Embedded Coder® and MATLAB® Coder.
[ 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.
[ analyzes
polyspaceFolder, resultsFolder]
= pslinkrun(target, psOpt)target using the configuration options specified in the
object psOpt. It returns the location of the results folder.
[
uses polyspaceFolder, resultsFolder]
= pslinkrun(target, psOpt, 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++ custom code included in C Caller blocks and Stateflow charts
in the model.polyspaceFolder, resultsFolder]
= pslinkrun('-slcc',target)
[
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, psOpt)psOpt.
[ runs
Polyspace on C/C++ code generated from MATLAB code and stored in polyspaceFolder, resultsFolder]
= pslinkrun('-codegenfolder', codegenFolder)codegenFolder.
[
runs Polyspace on C/C++ code generated from MATLAB code and stored in polyspaceFolder, resultsFolder]
= pslinkrun('-codegenfolder', codegenFolder, psOpt)codegenFolder. The analysis
uses the configuration options specified in the object
psOpt.
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