ECUMC — Project Setup

This section configures the XCP on CAN example in VeriStand and prepares the screen used to control and monitor the demo ECU. Complete Installation first.

Configure the XCP or CCP Master in NI VeriStand

Add the custom device

After creating a VeriStand project, open System Explorer and add “XCP or CCP Master” under “Custom Devices”.

Adding the XCP or CCP Master custom device in System Explorer

Select the A2L database and XCP transport

Select “XCP or CCP Master” to open its configuration UI, then select an A2L database file. An example database installed with ECUMC is located at:

C:\Program Files\NI\LVAddons\ecumc\1\examples\ECUMC\XcpECU.a2l

For this initial CAN example, select “XCP on CAN” from the “Master Type” dropdown.

XCP or CCP Master configuration with A2L file and XCP on CAN selected

Configure the CAN interface

Use the communication properties supplied by the example A2L database. Switch to the “CAN” tab, select the CAN port for the master endpoint (VeriStand), and enable “NI-XNET Bus Termination” for the demonstrated setup. No changes are required under “Miscellaneous”.

Selecting the NI-XNET CAN interface and bus termination

Add Characteristics

Select “Characteristics” beneath “XCP or CCP Master” in the tree view. Choose the available characteristics to add to the VeriStand channel list.

Characteristics represent ECU calibration parameters. They can be adjusted through the master when supported and permitted by the ECU.

Selecting ECU Characteristics to add as VeriStand channels

Add Measurements

Select “Measurements1” to open the measurement configuration UI. Choose from “Available Measurements in Database” and add the required signals to the VeriStand channel list.

Important: Do not add MeasScalarU64 to this example configuration. The documented VeriStand setup does not support this signal type; including it causes the project to fail. This limitation should be rechecked if using a different toolkit or VeriStand version.

Measurements expose internal ECU values for observation and logging rather than calibration changes.

Selecting ECU Measurements in the XCP custom device

Save the configuration

Save the configuration and close System Explorer.

Create the VeriStand Screen

Add a screen

Add a new “Screen”.

Creating a new VeriStand screen

Add PWM calibration controls

This example focuses on the software ECU’s PWM_Signal. Drag PWM_Frequency and PWM_Level from the tree view onto the screen panel. These characteristics control the frequency and level of the signal generated by the example ECU.

Adding PWM Frequency and Level controls to the VeriStand screen

Add a chart

Right-click the screen panel, search for “chart”, and add a “Chart”.

Adding a Chart indicator to the VeriStand screen

Select the measurement for the chart

Use the “Data Source” button to select PWM_Signal from the available measurements.

Selecting PWM Signal as the chart data source

The VeriStand project and screen are now prepared. Continue with Example Execution to start the demo ECU, deploy the project, and test the communication.