CAN-FD Example
- Updated2025-01-10
- 2 minute(s) read
CAN-FD Example
This CAN-FD sample project calculates the CRC according to AUTOSAR End-to-End-Profile 2. In this profile, special Data-IDs are included in the .dbc file. These are used to calculate the CRC depending on the counter value and the Data-ID.
To deploy this example, you must connect automotive CAN Flexible Data-Rate hardware to your system.
You must use two interconnected CAN ports. Configure their names in NI-MAX as CAN1 and CAN2.
You can find a list of CAN interface instruments on the NI store page for CAN hardware at ni.com/shop.
In VeriStand
How
to Import the Project
- Click Browse.
- Navigate to .
- Press <Ctrl+O>.
Look for the project file NI-VCOM_CAN-FD_Example.nivsproj in the example folder.
Double-click the project to open the Project Explorer window. To run the project, press <F5> or click Deploy.
Select a Different Target
In LabVIEW
How
to Open the Project
After you install the toolkit, navigate to the following path to locate the example folder: %Program Files%\National Instruments\LabVIEW\examples\Vehicle Communication Toolkit\VCOM Full Examples.
This example demonstrates how to use the API for CAN in signals single point mode. You can open the Configuration Tree Browsing.vi example in parallel to have better access to all signals. For more information, refer to Configuration Tree Browsing for LabVIEW.
A simulated ACC ECU sends the message ACC_ESP_E2E_PR2 on port CAN1 to a simulated ESP ECU on port CAN2.
To view all traffic, run the NI-XNET Bus Monitor as a subordinate session on either CAN1 or CAN2.