Skip to main content

Validation

What This Chapter Covers​

This chapter explains real-time validation in PAIO: how to open the panel, when validation runs, how to read the list, and how to jump to a problem and fix it. The checks follow the AUTOSAR standard constraints, and some checks without a standard number were added by PAIO. They span network configuration and communication, software structure and interfaces, data types, Adaptive Platform configuration and service deployment, diagnostics, Software Clusters and Vehicle Packages, the Intrusion Detection System, and ECU configuration. Severity is fixed per rule: most rules report error, the rest warning.

  • Intended readers: users who edit the model and want to clear errors before export
  • Prerequisites: a project is open. See 04. Workspaces and Projects.

Validation has no run button. It runs as soon as the project opens and again whenever you edit the model.

14.1 Opening and Closing the Validation Panel​

  1. Click the V button in the status bar at the bottom of the window (tooltip Toggle Validation). The panel opens below the editor area.
  2. To close it, click V again or Close Panel in the panel header.

V is the only entry point; the menus, the command palette and the shortcuts have no validation item.

Reading the Status Bar Badge​

  • No badge: no violations.
  • A number: errors and warnings together. It is red when at least one error is present.
  • !: validation could not run. This does not mean "no problems".

The badge next to the VALIDATION title in the panel header counts errors only.

14.2 Which Project Is Validated​

A PAIO window holds one project, and validation always targets that project. To validate another project, open it in its own window. With no project open, the panel shows Select a project in the Explorer to run validation.

14.3 When Validation Runs and What It Reads​

Validation runs automatically:

  • when the project opens
  • whenever you edit the model
  • after you import ARXML
  • when a design file of the project changes on disk

It reads the entire design data of the project, unsaved edits included. Parts you have not built yet are not reported as errors.

14.4 Reading the List​

The list has four columns: Element Type, Name, Description and Constr (the AUTOSAR constraint number). A red bar on a row marks an error, an orange bar a warning. An empty Constr cell is normal for checks that have no standard constraint number.

Group Rows​

Sibling elements under the same parent that share a SHORT-NAME are collected into one group row with a count badge.

  1. Click the group row. The child rows #1, #2 and so on appear.
  2. Click a child row to mark that element.

Validation panel with duplicate SHORT-NAMEs collected into a group row

① The group row Connectors / CanConnector with its count badge 2, expanded. ② The clicked child row CanConnector #1. ③ The NAME field of that connector, marked in red.

When the List Is Empty​

No validation issues. means there are no violations. Validation could not run. See the developer console for details. means validation failed to run, not that there are no problems.

14.5 Jumping to a Violation​

  1. Click a row. The editor tab that owns the element opens, and the element is selected.
  2. A violation marker stays on the element in the row's severity color: red for an error, orange for a warning. If the target is an input field, the field receives the focus with its value selected.
  3. Elements edited inside a dialog (Machine Configuration, AA Internal Behavior and so on) open all the way down to that dialog.

The AA Internal Behavior dialog open with the LOG MODE field marked in red

A field inside a dialog. ① The EXECUTION tab with LOG CONFIG expanded. ② LOG MODE, which holds a value that is not allowed, marked in red.

The Machine Configuration dialog at the FUNCTION GROUP tab, with the INITIAL MODE field showing an undeclared state

A row can open a dialog without marking a field. ① The FUNCTION GROUP tab. ② Select MachineFG yourself. ③ INITIAL MODE shows Ghost with Referenced item not found, the field's own reference check.

  1. Correct the value. Validation runs again, and the fixed row leaves the list.

The VFB editor with an orange marker on a port whose port interface is missing

① The VFB editor selects the port Sensor. ② The PORT INTERFACE field, marked in orange because its target does not exist.

A duplicate Service ID marked in the SERVICE DEPLOYMENT card of the Interface editor

The same works outside the diagram editors. ① Click the row: the PNC:Interface tab opens with the interface selected. ② Only the SERVICE ID field is marked in red.

Only one element is marked at a time. Some rows have no single field to mark; the editor then only selects the element. A row about a SWC↔ECU mapping, for example, shows the SYSTEM panel of the System editor.

The System editor with the SYSTEM panel open after clicking a SwcToEcuMapping row

① The SwcToEcuMapping row. ② The SYSTEM panel. ③ ECU MAPPING. No field is marked. See 11. SYSTEM Panel.

Editors You Can Jump To​

The editor that opens depends on the area of the element: for example the DataType editor for data types, the Interface editor for port interfaces, the VFB editor for SWCs and Machines, the System editor for nodes and connectors, and the Diagnostic editor for DEXT elements.

Rows That Do Not Navigate on Click​

ECUC rows (such as EcucParameterValue), RuleFailure rows and group header rows do not open an editor.

Passing validation does not mean the exported ARXML is schema-valid. See 13. Import and Export.

14.6 Required and Broken References​

Reference fields in every editor and dialog mark two states, and the validation panel reports the same two:

  • A reference the design requires is empty: the field is red, and the panel reports an error.
  • The value names an element that does not exist: the field is orange with Referenced item not found, and the panel reports a warning.

The clear button (×) of a reference field empties the value in the model, not only on screen.