Code Analysis is integrated into EcoStruxure Machine Expert to analyze applications.
Code Analysis focuses on the following key elements:
Understanding the structure of the source code. Software developers can visualize, for example, code dependencies and explore it step by step.
Identification of code deficiencies to harmonize and improve the source code by defined programming guidelines.
Measurement of source code quality and identifying the KPIs (Key Performance Indicators).
Reporting the KPIs to the software developers for personal purpose.
Besides the system requirements for EcoStruxure Machine Expert, Code Analysis has additional requirements regarding the hardware and the operating system.
The minimum requirements are:
4-core processor for parallel query execution
4 GB RAM
To analyze projects, the following specifications are suggested:
Windows 64 bit
≥ 4-core processor for parallel query execution
≥ 8 GB RAM
To use Code Analysis in EcoStruxure Machine Expert, the component has to be installed with the Schneider Electric Software Installer.
Code Analysis is under license protection:
Function |
Without license |
With license |
---|---|---|
|
Limited to two diagrams. |
Not limited. |
|
Limited to two objects and three active queries. |
Not limited. |
|
Limited to two objects and three active queries. |
Not limited. |
|
Not available. |
Available. |
|
Not available. |
Available. |
With the three code analysis editors in EcoStruxure Machine Expert Logic Builder you can analyze and interpret the results of a code analysis:
Parts of the application that violate the defined coding conventions (based on coding rules).
Dependencies between namespaces, libraries, objects (function blocks, POUs, and so on).
Results of code quality figures, like LOC (Lines of Code), complexity, and so on.
Multiple instances of code analysis objects can be added beneath
, folders, or .Several code analysis objects can be added to an application.
If a
or object is added beneath or , the whole application is in the scope of the analysis.If they are added beneath a folder, only this folder is in the scope of the analysis.
So it is possible to store analysis results for example, for each module/folder of an application in dedicated objects.
Adding a
, , or a to an application automatically adds a to the object.A snapshot into Machine Advisor Code Analysis.
object can be added beneath a object. The object contains elements that will not appear in , , or results. This, although, is taken into account when you upload a projectThe
provides a quick overview via a dashboard and you can configure analysis depth and the cloud connection.The
provides the tabs:The allows you to create and modify customized rule sets, and to manage your metrics and conventions queries. To open the click in the menu bar and select from the contextual menu.
The
provides the tabs:
Rule sets can be created and modified.
Queries and query chains available in the
editor can be created and modified.Queries and query chains available in the
editor can be created and modified.Queries and query chains available in the
of the editor can be created and modified.Queries and query chains available in the
dialog box of the editor can be created and modified.The connection to Machine Advisor Code Analysis can be configured.