polyspaceArtifact
Generate artifacts to run Polyspace analysis on code generated from Simulink model
Since R2024a
Syntax
Description
generates the data range specification file and link-to-model data file for the current
system and current configuration. The paths to these Polyspace® artifacts are stored in pathToArtifacts = polyspaceArtifactpathToArtifacts.
To use these artifacts, place them in the working directory of a Polyspace analysis before starting the analysis. The data range specification file
allows you to run a more precise Polyspace analysis of generated code. The link-to-model data allows you to identify
which block in your model is the root cause of a flagged issue. Using the function
polyspaceArtifact, you can generate these artifacts without
regenerating the entire code and without requiring an integration between Simulink® and Polyspace.
generates the artifacts for the model pathToArtifacts = polyspaceArtifact(mdlName)mdlName and the current
configuration.
generates the artifacts using the configuration specified in pathToArtifacts = polyspaceArtifact(mdlName,psOpt)psOpt.
The object psOpt is a Polyspace options object that is generated by using pslinkoptions. This syntax allows you to generate
the artifacts with a custom configuration without directly changing the configuration of
the current model.
uses pathToArtifacts = polyspaceArtifact(mdlName,psOpt,asModelRef)asModelRef to specify whether to generate option files for
model reference code or standalone code.
generates the artifacts specified in pathToArtifacts = polyspaceArtifact(mdlName,psOpt,asModelRef,artifacts)artifacts.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2024a