National Instruments 372139B-01 Automobile User Manual


 
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW
© National Instruments Corporation 5-65 Automotive Diagnostic Command Set User Manual
Output
diag ref out is a copy of diag ref in. You can wire it to subsequent
diagnostic VIs.
success? indicates successful receipt of a positive response message for
this diagnostic service.
error out describes error conditions. If the error in cluster indicated an
error, the error out cluster contains the same information. Otherwise,
error out describes the error status of this VI.
status is TRUE if an error occurred.
code is the error code number identifying an error. A value of 0
means success. A negative value means error: the VI did not
execute the intended operation. A positive value means warning:
the VI executed intended operation, but an informational warning
is returned. For a description of the code, wire the error cluster to
a LabVIEW error-handling VI, such as the Simple Error
Handler.
source identifies the VI where the error occurred.
Description
This VI enables different diagnostic modes in the ECU. The possible diagnostic modes are
not defined in the ISO 14230 standard and are application specific. A diagnostic session starts
only if communication with the ECU is established. For more details about starting
communication, refer to the ISO 14230-2 standard. If no diagnostic session has been
requested after Open Diagnostic.vi, a default session is automatically enabled in the ECU.
The default session supports at least the following services:
The StopCommunication service (refer to Close Diagnostic.vi and the ISO 14230-2
standard).
The TesterPresent service (refer to TesterPresent.vi and the ISO 14230-3 standard).