To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to receive CAN frames via the Network Interface.
Description
It also calculates the bus load as done in Measurement & Automation Explorer's Bus Monitor.
Requirements
LabVIEW 8.6 "or compatible"
NI CAN 2.3.6 "or compatible"
Steps to Implement or Execute Code
1.) Download and open the attached example
2.) Select your CAN device and Baudrate
3.) Run the LabVIEW example
Additional Information or References
This example displays the same arbitration ID on multiple lines if it is received more than once. If you would like formatting like Measurement & Automation Explorer's Bus Monitor, refer to CAN Receive Frame and Display Current Arbitration Data Instead of Multiple Lines. This example uses the Frame API. NI-CAN driver must be installed as well.
**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.