polyspaceAutosar
Run Polyspace Code Prover on code implementation of AUTOSAR software components using MATLAB scripts
Syntax
Description
[
creates Polyspace® Platform workspace and project files corresponding to the AUTOSAR
specification. The function parses the AUTOSAR XML specifications
(status, msg] = polyspaceAutosar('-create-project',projectFolder,'-arxml-dir',arxmlFolder,'-sources-dir',codeFolder,'-output-platform-project').arxml files) in arxmlFolder,
modularizes the code implementation (.c files) in
codeFolder based on the specifications, and prepares a
Polyspace Platform workspace file (.pswks) and project
files (.psprjx) containing the necessary configurations to
run a Polyspace
Code Prover™ analysis.
[ creates a Polyspace project from AUTOSAR specifications as in the preceding syntax but allows you to exclude specific files or folders from analysis using shell patterns or regular expressions.status, msg] = polyspaceAutosar('-create-project',projectFolder,'-select-arxml-files',arxmlFiles,'-select-source-files',codeFiles,options)
[ updates the Code Prover analysis results based on changes in ARXML files or C source code since the last analysis. The update uses the html file status, msg] = polyspaceAutosar('-update-project',prevProjectFile,options)prevProjectFile from the previous analysis and only reanalyzes the code implementation of software components that changed since that
analysis.
You can use additional options for troubleshooting.
[ updates the Code Prover analysis results based on changes in ARXML files or C source code since the last analysis. The update only reanalyzes the code implementation of software components that changed since the previous analysis. A clean update also removes information about software
components that are out of date. For instance, if you use an additional option to force the update for specific software components and other SWC-s have also changed, a clean update removes those other SWC-s from the Polyspace project.status, msg] = polyspaceAutosar('-update-and-clean-project',prevProjectFile,options)
You can use additional options for troubleshooting.
[ runs a Code Prover analysis using the same options as before. The output, instead of appearing in the MATLAB® Command Window, is redirected to a character vector status, msg, out] = polyspaceAutosar(___)out.
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.