Example Code

OBD-II CAN Car Monitor Demo

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • C Series CAN Interface Module
  • CAN Interface Device
  • PXI CAN Interface Module

    Software

  • Automotive Diagnostic Command Set Toolkit

Code and Documents

Attachment

Description

Overview


This pre-compiled example uses the Automotive Diagnostics Command Set, NI CAN, and LabVIEW to monitor live variables in any OBD-II compliant vehicle with CAN (usually year 2006 and newer vehicles). You need the LabVIEW Runtime engine 2009 and NI-CAN 2.4 or XNET 1.3 or later installed to run this example.

To install, unzip the attached .zip and run the .exe program. This example needs the LabVIEW Runtime Engine 2009 and NI-CAN 2.4 or XNET 1.3 or newer installed to function. A USB-CAN interface is recommended for this example. This example demonstrates a common use of the Automotive Diagnostic Command Set. To develop your own applications, purchase the Command Set at https://www.ni.com/en-us/shop/product/automotive-diagnostic-command-set-toolkit.html.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.