How to configure CAN FD with the Vehicle Communication Measurement and Calibration Toolkit

Updated Dec 11, 2024

There will be instances where users of the Vehicle Communication Toolkit (VCOM) will need to use CAN FD protocol to communicate with their Device Under Test (DUT). This article will highlight steps necessary for users to modify an application such that it will support CAN FD protocol.

Users will need to modify their A2L file and LabVIEW example code. This article will utilize the shipped NI A2L file that comes with the VCOM toolkit and a VCOM LabVIEW Example. 
The A2L file can be found here: C:\Users\Public\Documents\National Instruments\NI-VCOM\Measurement and Calibration Toolkit
The LabVIEW example used in this guide will be "Add SingleECU into Calibration Server.vi" and it is located here (Your LabVIEW edition will change this path) : C:\Program Files\National Instruments\LabVIEW XXXX\examples\Vehicle Communication Measurement and Calibration Toolkit\Example VIs\VCOM MC - Enable Communication with Single ECU.vi

 

  1. Open your A2L File and include an entry for CAN FD Similar to the Screen shot below. 
    • Note that the Values for Baud Rate are set in Hexidecimal. 
    • The Example is set for 2Mbd 
    • Modified XcpECU.a2l Entry
  2. Next we move to the LabVIEW example; open "Add SingleECU into Calibration Server.vi".
    1. Navigate to the block diagram and open the SubVI "Add SingleECU into Calibration Server.vi" 
      • Sub VI used for modifications
    2. Modify the "Add SingleECU into Calibration Server.vi" to include the following CAN FD configuration VIs: "Config CAN FD.vi", "Config Custom CAN bit rate.vi", and "Config Custom CAN data bitrate.vi"
      • These Vis are included with the VCOM MC toolkit at this location (Your LabVIEW edition will change this path): C:\Program Files\National Instruments\LabVIEW XXXX\vi.lib\Vehicle Communication Measurement and Calibration Toolkit\private\Configuration VIs 
      •  modified calibration server  

You should now be able to communicate with your DUT using CAN FD with the rate established in the modified A2L and LabVIEW Example.