Using NI-VCOM Toolkit to Configure Rolling Counter for CAN Application

Updated Oct 24, 2023

Environment

Software

  • Vehicle Communication Toolkit

Driver

  • NI-XNET

The Rolling Counter means adding 1 to the Rolling Counter bits every time a frame is sent. Assuming that the Rolling Counter is 4bit, then the Rolling Counter will increase cyclically between 0-15. When the ECU detects that the Rolling Counter has a jump, such as jumping directly from 1 to 3, then the ECU knows that the frame with the Rolling Counter of 2 has not been received, and the ECU will generate a DTC (Diagnostic Trouble Code) signal, and then the ECU will Enter safe mode. NI-VCOM toolkit provides a tool to configure the Rolling counter for CAN frames. This article will introduce how to configure a Rolling Counter with the NI-VCOM toolkit.

  1. Open the RBSConfig Software
You have 2 different ways to open the software.
a. Open LabVIEW, then select Tools>>Vehicle Communication Toolkit>>Legacy>>DBC and LDF RBSConfig...
Capture.JPG
b. Add the PROVEtechRBS Custom device in VeriStand. Click Create RBS Descriptor to open the RBSConfig software.
Capture.JPG
  1. Add database file
Right-click in the Datapool, then select New Network>>CAN or FlexRay Network. In the pop-up Options window, select Create single network to add the required database file.
Capture.JPG
Capture.JPG
  1. Configure Rolling Counter
Find the Rolling Counter signal in the Datapool, then right-click on it and select Copy2Config.
Capture.JPG
Find the Rolling Counter signal in the Configuration, then right-click on this signal and select Auto Signal>>Ramp. You can see the signal under AutoSignals.
Capture.JPG
  1. Save as XML for setting RBS Configuration
Right-click on the database file in Configuration, then select Save as XML to save the configuration.
Capture.JPG
The XML file should be added in the RBS Configuration.
Capture.JPG
Note: The VeriStand Custom Device is called NI:VCOM from VCOM 2023Q3 rather than Provetech:RBS.