polyspace.Options Class
Namespace: polyspace
Create object for running Polyspace analysis on handwritten code
Description
Create an object that specifies Polyspace® options. When running a Polyspace analysis from MATLAB®, specify the configuration by using this options object. To specify source files and customize analysis options, change the object properties.
polyspace.Options
object apply to handwritten code. To analyze
model-generated code (using the Polyspace desktop products), use polyspace.ModelLinkOptions
instead.
Note
Before you run Polyspace from MATLAB, you must link your Polyspace and MATLAB installations. See Integrate Polyspace with MATLAB and Simulink or Integrate Polyspace Server Products with MATLAB.
Construction
opts = polyspace.Options
creates an object
whose properties correspond to options for running a Polyspace analysis.
proj = polyspace.Project
creates a polyspace.Project
object. The
object has a property Configuration
, which is a
polyspace.Options
object.
opts = polyspace.Options(
creates
a Polyspace options object
with options that are applicable to the language lang
)lang
.
opts = polyspace.loadProject(
creates a
Polyspace options object from an existing
Polyspace project projectFile
)projectFile
. You set the options in your
project in the Polyspace user interface and create the options object from that project for
programmatically running the analysis.
Input Arguments
Properties
The object properties correspond to the analysis options for Polyspace projects. The properties are organized in the same categories as the Polyspace interface. The property names are a shortened version of the DOS/UNIX command-line name. For syntax details, see polyspace.Project.Configuration Properties.
Methods
copyTo | Copy common settings between Polyspace options objects |
generateProject | Generate psprj project from options object |
toScript | Add Polyspace options object definition to a script |
Examples
Alternatives
If you are analyzing code generated from a model, use polyspace.ModelLinkOptions
instead.
Version History
Introduced in R2017a