Chapter 5 Automotive Diagnostic Command Set API for LabVIEW
Automotive Diagnostic Command Set User Manual 5-24 ni.com
Open Diagnostic.vi
Purpose
Opens a diagnostic session on a CAN port. Communication to the ECU is not yet started.
Format
Input
CAN interface specifies the CAN interface on which the diagnostic
communication should take place. The values are CAN0, CAN1, and so on.
baudrate is the diagnostic communication baud rate.
transport protocol specifies the transport protocol for transferring the
diagnostic service messages over the CAN network. The following values
are valid and can be obtained through an enum control:
0 ISO TP—Normal Mode: The ISO TP as specified in ISO 15765-2
is used; all eight data bytes of the CAN messages are used for data
transfer.
1 ISO TP—Mixed Mode: The ISO TP as specified in ISO 15765-2 is
used; the first data byte is used as address extension.
2 VW TP 2.0
transmit ID is the CAN identifier for sending diagnostic request messages
from the host to the ECU. To specify an extended (29-bit) ID, OR the value
with 0x20000000.
receive ID is the CAN identifier or sending diagnostic response messages
from the ECU to the host. To specify an extended (29-bit) ID, OR the value
with 0x20000000.
error in is a cluster that describes error conditions occurring before the VI
executes. If an error has already occurred, the VI returns the value of the
error in cluster to error out.