メインコンテンツまでスキップ

Creating the Project and the HPC Machine

What You Will Do​

In this chapter you start from a PAIO window with no project open and build the skeleton of the Adaptive Application design. You create the project AADesign, place one HPC node in the System editor and rename it to Ecu, then create the composition HPC in the VFB editor and map it onto that node. Finally you open the Machine Configuration dialog through the machine icon attached to the composition, look through its four tabs, and save it.

When you finish this chapter, design/ holds seven files and the VALIDATION panel shows one error (constr_10641). That one finding is expected; you fix it in Machine Configuration.

Before You Begin​

  • PAIO must be installed and ready to run.
  • Start from a PAIO window with no project open. The title bar reads PAIO, the EDITOR view on the left shows No project open, and the Welcome tab (Welcome to PAIO) is open. If PAIO opens a project you worked on before, choose PROJECT › New Window to get such a window.
  • This tutorial does not depend on any other tutorial or example project. Follow it from this chapter onward.

Apart from the folder you choose for the project, you type only three values in this chapter. These names are used as they are in every later chapter, so do not change them.

ElementValue to typeWhere
Project nameAADesignNew Project dialog
HPC node nameEcuSystem editor property panel NAME
Composition name and prototype nameHPC (twice)VFB editor property panel NAME and AS PROTOTYPE

Note. The node name Ecu goes into the machine file name (Ecu.machine.io.model), the Ethernet endpoint names you create in later chapters (Ecu_eth0_UDP_20001 and so on), and the DLT ECU path. The composition name HPC is used in the system mapping and in the title of the Machine Configuration dialog.

Creating a New Project​

Opening New Project from the Project Menu​

  1. Click PROJECT in the menu at the top of the window.

  2. Click New Project... in the dropdown. It has no shortcut. The New Project button on the Welcome tab opens the same dialog.

    New Project in the Project menu

    Figure 1-1. The PROJECT menu opened in a window with no project open. ① The PROJECT menu button, ② the New Project... item. The same dropdown holds Save and Save All, which you use several times in this chapter. Behind the menu, the EDITOR view shows No project open and the Welcome tab is open.

Entering the Name and Creating​

  1. In the New Project dialog, type AADesign into Name.

  2. Set Location to the folder that will hold the project: type its path, or click Browse… and pick the folder. PAIO creates the project folder AADesign inside it, and the line below the fields shows that path as The project will be created in …\AADesign. Create stays disabled until both Name and Location are set.

  3. Click the Create button.

    The New Project dialog

    Figure 1-2. The New Project dialog. ① Name with AADesign typed in, ② Location and the Browse… button, ③ the line The project will be created in … that names the new project folder, ④ the Create button. The folder in the figure is only an example; use a folder of your own.

Touring the EDITOR View​

  1. Confirm that the same window has entered the new project: the title bar reads PAIO [AADesign] and the view on the left is headed EDITOR: AADesign.

  2. Confirm that DESIGN and MODULE are open in the EDITOR view. DESIGN lists System, VFB, Interface, DataType, Diagnostic, and MODULE lists Definition and Configuration.

    The EDITOR view of the new project

    Figure 1-3. The window after Create. ① The title bar PAIO [AADesign], ② the view header EDITOR: AADesign, ③ the DESIGN rows System, VFB, Interface, DataType, Diagnostic, ④ the MODULE rows Definition, Configuration. The Welcome tab closed when the window entered the project, so the editor area has no tab open yet.

The items of the EDITOR view are as follows.

ItemRoleIn this tutorial
DESIGN › SystemVehicle network topology editor (nodes, connectors, clusters)This chapter, chapter 3
DESIGN › VFBSoftware composition and Adaptive Application editorThis chapter, chapter 8 onward
DESIGN › InterfaceService interface editorChapter 5
DESIGN › DataTypeData type editorChapter 4
DESIGN › DiagnosticDiagnostic editorNot used
MODULE › Definition, ConfigurationModule definitions and configurationsNot used
DOCProject documentsNot used
CODE, EXPORTCode and export outputEXPORT in chapter 13

Right after the project is created, design/ holds three files: IVC.io.model, SYSTEM.io.model, VFB.io.model. By the end of this chapter there are seven.

Creating the HPC Node​

Opening the System Editor​

  1. In the EDITOR view on the left, click System under DESIGN. A single click opens the System editor.
  2. Confirm that the tab AADesign:System opened and that System is shown in the upper-left corner of the canvas. The canvas is empty.

Adding an HPC to the Canvas​

  1. Right-click an empty spot on the canvas. The menu shows two items: Add ECU and Add HPC.

  2. Click Add HPC.

    Add HPC in the System editor canvas menu

    Figure 1-4. The right-click menu of the empty System editor canvas. ① Add HPC.

  3. The node HPC_0 appears on the canvas. A blue dot (the modified mark) appears next to the tab title.

  4. Click the node header HPC_0. A property panel titled HPC opens on the right.

    The node with the default name HPC_0

    Figure 1-5. The node you just created. ① The selected node HPC_0, ② the NAME field of the property panel. Below it are the DESCRIPTION, CONNECTORS (No connectors), CONTROLLERS (No controllers) and PARTIAL NETWORK sections. In this chapter you change NAME only.

Renaming the Node to Ecu​

  1. Delete HPC_0 in the NAME field of the property panel and type Ecu.

  2. Press the Tab key. The node header on the canvas changes to Ecu.

  3. Press Ctrl+S to save. The blue dot on the tab title disappears.

    The node renamed to Ecu

    Figure 1-6. The System editor after saving. ① The node whose header now reads Ecu, ② Ecu in the NAME field. The tab AADesign:System carries no modified mark.

Creating the Composition HPC​

The software composition that goes onto the node is created in the VFB editor.

Adding a Composition in the VFB Editor​

  1. In the EDITOR view, click VFB under DESIGN. The tab AADesign:VFB opens. The canvas of the root composition System is empty, and the property panel on the right is closed until you select an element.

  2. Right-click an empty spot on the canvas. The menu shows three items: Add Composition, Attach Composition, Add Interface Mapping.

  3. Click Add Composition. The composition Composition_0 appears on the canvas.

    Add Composition in the VFB root canvas menu

    Figure 1-7. The right-click menu of the empty VFB root canvas. ① Add Composition. The tab bar holds both AADesign:System and AADesign:VFB.

Renaming the Name and the Prototype Name to HPC​

  1. Click the new composition. A property panel titled COMPOSITION opens on the right.

  2. Type HPC into the NAME field and press the Tab key.

  3. Type HPC into the AS PROTOTYPE field as well and press the Tab key.

  4. Press Ctrl+S to save, then click PROJECT › Save All.

    The composition renamed to HPC

    Figure 1-8. The renamed composition. ① The composition node HPC, ② NAME = HPC, ③ AS PROTOTYPE = HPC. PORTS reads No ports available and PORT GROUPS reads No port groups.

Caution. Changing NAME leaves AS PROTOTYPE at Composition_0. You must type HPC into both fields so that the system mapping and the label on the root canvas read HPC.

Mapping the Composition onto the Node​

Running SW Mapping in the System Editor​

  1. Click the tab AADesign:System to return to the System editor.

  2. Right-click the empty body of the node Ecu. The menu shows seven items: Add Connector, Add Controller, Add Ethernet Switch, Add Gateway, SW Mapping, Extract Machine, Delete.

  3. Hover over SW Mapping. The submenu shows HPC and New Composition.

  4. Click HPC.

    The SW Mapping submenu

    Figure 1-9. The right-click menu of the node Ecu. ① SW Mapping, ② HPC in the submenu, ③ New Composition. In this tutorial you click ② and do not use ③.

  5. There is nothing to save: the click writes the mapping to design/SYSTEM.io.model at once, and no tab shows the modified mark. The node header on the canvas now reads Ecu [HPC]; the name in brackets is the mapped composition.

Note. New Composition creates a new composition named after the node and maps it. Because the node is Ecu, the composition would be Ecu too. This design keeps the node Ecu and the composition HPC apart, so you map the HPC you created in the VFB with SW Mapping › HPC.

Checking the Mapping in the VFB Editor​

  1. Click the tab AADesign:VFB.

  2. Confirm that the composition label on the root canvas changed to HPC [Ecu] and that a machine icon shaped like three blue bars is attached to the right of the header. The name in brackets is the mapped HPC node.

    The HPC composition with the machine icon

    Figure 1-10. The VFB root canvas after the mapping. ① The composition HPC [Ecu], ② the machine icon at the right of the header. NAME and AS PROTOTYPE in the property panel both read HPC.

Opening the Machine Configuration Dialog​

Clicking the machine icon opens the Machine Configuration dialog. In this chapter you change no value: you look through the four tabs and save. When the dialog is opened for the first time, the function group MachineFG, the processor CPU and eleven modules are filled in as defaults, and pressing Ctrl+S inside the dialog is what writes those defaults into the machine file.

Opening the Dialog​

  1. Click the × on the tab AADesign:VFB to close the tab.
  2. In the EDITOR view, click VFB under DESIGN again.
  3. Click the machine icon in the header of the composition HPC [Ecu]. A dialog titled Machine Configuration [HPC] opens. The name in brackets is the composition name.

Caution. In a VFB tab that was already open before the mapping, the machine icon is visible but clicking it does not open the dialog. Close the tab and reopen it as in steps 1 and 2. You do not need to restart the application.

The MACHINE Tab​

The dialog opens with the MACHINE tab selected.

The MACHINE tab of the Machine Configuration dialog

Figure 1-11. The Machine Configuration [HPC] dialog. ① MACHINE, ② FUNCTION GROUP, ③ PROCESSES, ④ MODULE tabs. The center canvas holds the machine box Ecu; the PARA Platform Import button is at the top right and the Close button at the bottom right.

The MACHINE panel on the right shows the following.

ItemCurrent valueNotes
OSEmpty, with the red hint Name is requiredFilled in Machine Configuration. This is expected for now
TRUSTED PLATFORMNO SUPPORT (choices STRICT, MONITOR, NO SUPPORT)Leave it
DESCRIPTIONEmpty (hint Text)Leave it
PROCESSOR › PROCESSORCPUDefault
PROCESSOR › CORE / CORE ID tableOne row Core0 / 0, a + button (tooltip Add Core)Cores are added in Machine Configuration
REFERENCED HPCHPC EcuThe HPC node mapped in the System editor

The FUNCTION GROUP Tab​

  1. Click the FUNCTION GROUP tab.

  2. Confirm that the FUNCTION GROUPS list on the left holds one entry, MachineFG, and that it is selected.

    The FUNCTION GROUP tab of the Machine Configuration dialog

    Figure 1-12. The FUNCTION GROUP tab. ① The FUNCTION GROUPS list (+, −, lightning icon), ② the CONFIGURATION panel, ③ the STATE MACHINE diagram.

The values in the center CONFIGURATION panel are as follows. All are defaults, and this tutorial uses this function group as it is.

ItemValue
NAMEMachineFG
FUNCTION GROUP › GROUP NAMEMachineState
FUNCTION GROUP › INITIAL MODEOff
MODE DECLARATION table (NAME / VALUE / DESCRIPTION)Off, Startup, Shutdown, Restart, Verify (every VALUE empty)

The STATE MACHINE diagram on the right draws the five states with transition arrows, and the initial-state marker is attached to Off.

The PROCESSES Tab​

  1. Click the PROCESSES tab.

  2. Confirm that the body shows only the line No Adaptive Application processes found in this Composition. No Adaptive Application exists yet, so this is expected.

    The PROCESSES tab of the Machine Configuration dialog

    Figure 1-13. The empty PROCESSES tab. Processes appear in Executables and Processes.

The MODULE Tab​

  1. Click the MODULE tab.

  2. Confirm that the MODULES list on the left holds eleven modules and that the first entry, Log and Trace, is selected.

    The MODULE tab of the Machine Configuration dialog

    Figure 1-14. The MODULE tab. ① The MODULES list; the green dot in front of each module means that the module is enabled (tooltip Enabled. Right-click to disable.). The center shows the DLT tab with the ECU ID field of the DLT ECU section (empty, hint e.g. ECU1) and No processes configured under DLT APPLICATION. The DLT HIERARCHY tab on the right reads No DLT applications.

The eleven modules in the list are, in order, Log and Trace, Communication Management, State Management, Diagnostic Management, Network Management, Platform Health Management, Time Synchronization, Cryptography, Persistency, Intrusion Detection, Update and Configuration Management. You change none of them in this chapter.

Saving and Closing​

  1. Press Ctrl+S inside the dialog. Any tab will do.
  2. Click the Close button at the bottom right.
  3. Click PROJECT › Save All.

Caution. Pressing Close alone does not create the machine file. The defaults filled in when the dialog opens leave no change record, so no save prompt appears either. Always press Ctrl+S inside the dialog. That is what creates design/Module/Machine/Ecu.machine.io.model.

Viewing the Validation Result​

  1. Look at the V icon in the footer at the bottom of the window, the fifth icon from the left. It already carries a red badge 1, and its tooltip reads Validation: 1 error(s), 0 warning(s), 0 info(s).

  2. Click the V icon to open the VALIDATION panel.

    The Validation panel showing one finding

    Figure 1-15. The VALIDATION panel. The header badge reads 1, the columns are ELEMENT TYPE / NAME / DESCRIPTION / CONSTR, and there is one row.

The one row of the panel is as follows.

ELEMENT TYPENAMEDESCRIPTIONCONSTR
StateManagementModuleInstantiationSMState-Management module "SM" of machine "Ecu" is missing maxActionListDuration.constr_10641

The severity is error and there is exactly one finding. This result is expected. The State Management module that the dialog added by default has no value yet; it disappears when you fill in Max Action List Duration in Machine Configuration.

Why Is It Designed This Way?​

  • The node Ecu and the composition HPC are named separately. The machine file, the Ethernet endpoints and the DLT ECU path follow the node name Ecu, while the system mapping and the machine dialog title follow the composition name HPC. If the two names were the same, later chapters could not tell which one they refer to.
  • The composition is created in the VFB first and mapped in the System editor. New Composition names the composition after the node, so it cannot follow the naming rule above.
  • The machine dialog is opened and saved once even though no value changes. That writes the defaults, the function group MachineFG, the processor CPU and the eleven modules, into the machine file, so the next chapters can fill in values on top of them.

Checklist​

  • The title bar reads PAIO [AADesign], and System, VFB, Interface, DataType, Diagnostic are listed under DESIGN in the EDITOR view.
  • The System editor (tab AADesign:System) holds one node, Ecu, whose header reads Ecu [HPC], and the tab carries no modified mark.
  • The root canvas of the VFB editor (tab AADesign:VFB) holds the composition HPC [Ecu] with the machine icon at the right of its header.
  • NAME and AS PROTOTYPE in the property panel both read HPC.
  • Clicking the machine icon opens the Machine Configuration [HPC] dialog; the FUNCTION GROUP tab holds MachineFG and the MODULE tab holds eleven modules.
  • design/ in the project folder holds seven files: IVC.io.model, SYSTEM.io.model, VFB.io.model, Module/Machine/Ecu.machine.io.model, SWC/Composition/HPC.swc.io.model, SWC/Composition/System.swc.io.model, SWC/Layout/System.vfb.layout.
  • The VALIDATION panel shows exactly one finding, constr_10641.

Next Step​

In Machine Configuration you fill in the OS, the cores, the ECU ID of Log and Trace and the Max Action List Duration of State Management in the Machine Configuration dialog, which removes the one error left by this chapter.