Using ECUMC with NI-9853 in NI VeriStand

Updated Mar 26, 2024

Environment

Hardware

  • NI-9853

Software

  • ECU Measurement and Calibration Toolkit
  • VeriStand

ECU Measurement and Calibration Toolkit allows users to easily perform CAN Calibration Protocol (CCP) or Universal Measurement and Calibration Protocol (XCP) communication. The XCP or CCP Master custom device enables users to access measurement data in VeriStand. As the NI-9853 is only supported on FPGA, we can't use it easily in VeriStand as other NI-XNET CAN modules. This article will introduce how to use ECUMC with NI-9853 in VeriStand.

Prerequisites

Before starting this tutorial, ensure that you have completed Getting Started With CAN Calibration in VeriStand.

Create Bitfile

  1. Open the CAN bridge LabVIEW project in <Program Files (x86)>\National Instruments\LabVIEW (version)\examples\ECUMC\crio\CAN Bridge (FPGA).
  2. Configure your project and generate the bit file.
  • Add your cRIO target to the LabVIEW project.
  • Add the 9853 module. It must be called Mod1(otherwise, the actual name must be configured in the diagram of CAN Bridge(FPGA).vi.)
  • In the project view, add the above bridge VI and a FIFO to the FPGA target. You need to set the name of the internally used FIFO to __CAN0 FIFO (the FIFO is set to U32, 1029 elements, target scoped, and block memory).
  • Create a Build Specification for the bridge VI, then generate the bit file.

VeriStand Configuration

  1. Add XCP or CCP Master Custom Device by right-clicking on Custom Devices>>NI>>XCP or CCP Master
Capture.JPG
  1. Select your own ECU Device database file in A2L format for calibration.
Capture.JPG
  1. Configure the CAN settings. The CAN interface is CAN0 as the CAN Bridge(FPGA).vi communicates through Mod1/CAN0. The bit file generated by the bridge VI should be imported in the Bitfile Path.
Capture.JPG
  1. Refer to the section of Adding Measurement and Characteristics in Getting Started With CAN Calibration in VeriStand to add the channels.
  2. Deploy your system definition file to the target, then you can get the value of the added channels from the ECU.