National Instruments 372139B-01 - Manuals
National Instruments 372139B-01 – Manual in PDF format online.
Manuals:
Manual National Instruments 372139B-01
Summary
Important Information Warranty The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. Nati...
Compliance Compliance with FCC/Canada Radio Frequency Interference Regulations Determining FCC Class The Federal Communications Commission (FCC) has rules to protect wireless communications from interference. The FCC places digital electronics into two classes. These classes are known as Class A (fo...
© National Instruments Corporation v Automotive Diagnostic Command Set User Manual Contents About This Manual Conventions ................................................................................................................... xiRelated Documentation..........................................
Contents © National Instruments Corporation ix Automotive Diagnostic Command Set User Manual ndTesterPresent ............................................................................................... 6-71ndWriteDataByLocalIdentifier .................................................................
© National Instruments Corporation xi Automotive Diagnostic Command Set User Manual About This Manual This manual provides instructions for using the Automotive Diagnostic Command Set. It contains information about installation, configuration, and troubleshooting, and also contains Automotive Diagno...
About This Manual Automotive Diagnostic Command Set User Manual xii ni.com Related Documentation The following documents contain information that you might find helpful as you read this manual: • ANSI/ISO Standard 11898-1993, Road Vehicles—Interchange of Digital Information—Controller Area Network (...
© National Instruments Corporation 1-1 Automotive Diagnostic Command Set User Manual 1 Introduction Diagnostics involve remote execution of routines, or services, on ECUs. To execute a routine, you send a byte string as a request to an ECU, and the ECU usually answers with a response byte string. Se...
Chapter 1 Introduction Automotive Diagnostic Command Set User Manual 1-2 ni.com Transport Protocol As KWP2000 uses messages of variable byte lengths, a transport protocol is necessary on layers with only a well defined (short) message length, such as CAN. The transport protocol splits a long KWP2000...
Chapter 1 Introduction Automotive Diagnostic Command Set User Manual 1-4 ni.com Measurements Use the ReadDataByLocal/CommonIdentifier services to access ECU data in a way similar to a DAQ list. A Local/CommonIdentifier describes a list of ECU quantities that are then transferred from the ECU to the ...
Chapter 1 Introduction Automotive Diagnostic Command Set User Manual 1-6 ni.com Note Some parameters to both the Request and Positive Response Messages are optional. Each service defines these parameters. Also, the standard does not define all parameters. The Negative Response Message is usually a t...
© National Instruments Corporation 2-1 Automotive Diagnostic Command Set User Manual 2 Installation and Configuration This chapter explains how to install and configure the Automotive Diagnostic Command Set. Installation This section discusses the Automotive Diagnostic Command Set installation for M...
Chapter 2 Installation and Configuration Automotive Diagnostic Command Set User Manual 2-2 ni.com Refer to Appendix A, Troubleshooting and Common Questions , of the NI-CAN User Manual for information about resolving hardware installation problems. When installation is complete, you can access the Au...
© National Instruments Corporation 3-1 Automotive Diagnostic Command Set User Manual 3 Application Development This chapter explains how to develop an application using the Automotive Diagnostic Command Set API. Choosing the Programming Language The programming language you use for application devel...
Chapter 3 Application Development Automotive Diagnostic Command Set User Manual 3-2 ni.com LabWindows/CVI examples. The examples are in the LabWindows/CVI \samples\Automotive Diagnostic Command Set directory. Each example includes a complete LabWindows/CVI project ( .prj file). The example descripti...
Chapter 3 Application Development © National Instruments Corporation 3-3 Automotive Diagnostic Command Set User Manual pointers to Automotive Diagnostic Command Set functions in the application. The following section describes how to use the Win32 functions for C/C++ environments other than Visual C...
© National Instruments Corporation 4-1 Automotive Diagnostic Command Set User Manual 4 Using the Automotive Diagnostic Command Set Structure of the Automotive Diagnostic Command Set Diagnostic Services Layer KWP2000 Services UDS (DiagOnCAN) Services OBD(OnBoardDiag) Services Auxiliary Routines Diagn...
Chapter 4 Using the Automotive Diagnostic Command Set Automotive Diagnostic Command Set User Manual 4-2 ni.com The Automotive Diagnostic Command Set is structured into three layers of functionality: • The top layer implements three sets of diagnostic services for the diagnostic protocols KWP2000, UD...
Chapter 4 Using the Automotive Diagnostic Command Set © National Instruments Corporation 4-3 Automotive Diagnostic Command Set User Manual General Programming Model First, you must open a diagnostic communication link. This involves initializing the CAN port and defining communication parameters suc...
Chapter 4 Using the Automotive Diagnostic Command Set Automotive Diagnostic Command Set User Manual 4-4 ni.com When you finish your diagnostic services, you must close the diagnostic communication link. This finally closes the CAN port. For the VW TP 2.0, you should disconnect the communication chan...
© National Instruments Corporation 5-1 Automotive Diagnostic Command Set User Manual 5 Automotive Diagnostic Command Set API for LabVIEW This chapter lists the LabVIEW VIs for the Automotive Diagnostic Command Set API and describes the format, purpose, and parameters for each VI. The VIs are listed ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-2 ni.com List of VIs The following table is an alphabetical list of the Automotive Diagnostic Command Set VIs. Table 5-1. Automotive Diagnostic Command Set API VIs for LabVIEW Function Purpose...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-3 Automotive Diagnostic Command Set User Manual EnableNormalMessageTransmission.vi Executes the EnableNormalMessageTransmission service. The ECU starts transmitting its regular communication messages (us...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-7 Automotive Diagnostic Command Set User Manual UDS WriteDataByIdentifier.vi Executes the UDS WriteDataByIdentifier service. Writes a data record to the ECU. UDS WriteMemoryByAddress.vi Executes the UDS ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-8 ni.com General Functions Close Diagnostic.vi Purpose Closes a diagnostic session. Format Input diag ref in specifies the diagnostic session handle, obtained from Open Diagnostic.vi and wired...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-9 Automotive Diagnostic Command Set User Manual Output error out describes error conditions. If the error in cluster indicated an error, the error out cluster contains the same information. Otherwise, er...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-11 Automotive Diagnostic Command Set User Manual Output data out is the binary representation of the physical value. If you build a record of multiple values, you can concatenate the outputs of several i...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-13 Automotive Diagnostic Command Set User Manual Description Data output from diagnostic services (for example, ReadDataByLocalIdentifier.vi ) is usually a byte stream of binary data. If you have a descr...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-15 Automotive Diagnostic Command Set User Manual Diag Get Property.vi Purpose Gets a diagnostic global internal parameter. Format Input property ID defines the parameter whose value is to be retrieved. Y...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-16 ni.com 6 Wait Frames to Send (N_WAIT) is the number of WAIT frames the master sends every time before a CTS frame is sent. If this value is set to a negative number (for example, 0xFFFFFFFF...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-25 Automotive Diagnostic Command Set User Manual status is TRUE if an error occurred. This VI is not executed when status is TRUE. code is the error code number identifying an error. A value of 0 means s...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-27 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. error out describes error conditions. If the error in cluster...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-29 Automotive Diagnostic Command Set User Manual 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 operatio...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-32 ni.com KWP2000 Services ClearDiagnosticInformation.vi Purpose Executes the ClearDiagnosticInformation service and clears selected Diagnostic Trouble Codes (DTCs). Format Input DTC descripto...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-38 ni.com DisableNormalMessageTransmission.vi Purpose Executes the DisableNormalMessageTransmission service. The ECU no longer transmits its regular communication messages (usually CAN message...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-44 ni.com InputOutputControlByLocalIdentifier.vi Purpose Executes the InputOutputControlByLocalIdentifier service. Modifies ECU I/O port behavior. Format Input data in defines application-spec...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-51 Automotive Diagnostic Command Set User Manual ReadECUIdentification.vi Purpose Executes the ReadECUIdentification service. Returns ECU identification data. Format Input diag ref in specifies the diagn...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-53 Automotive Diagnostic Command Set User Manual ReadMemoryByAddress.vi Purpose Executes the ReadMemoryByAddress service. Reads data from the ECU memory. Format Input diag ref in specifies the diagnostic...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-58 ni.com RequestRoutineResultsByLocalIdentifier.vi Purpose Executes the RequestRoutineResultsByLocalIdentifier service. Returns results from a routine on the ECU. Format Input diag ref in spe...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-66 ni.com StartRoutineByLocalIdentifier.vi Purpose Executes the StartRoutineByLocalIdentifier service. Executes a routine on the ECU. Format Input diag ref in specifies the diagnostic session ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-67 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. data out returns application-specific output parameters from ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-76 ni.com WriteMemoryByAddress.vi Purpose Executes the WriteMemoryByAddress service. Writes data to the ECU memory. Format Input data in defines the memory block to be written to the ECU. diag...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-78 ni.com UDS (DiagOnCAN) Services UDS ClearDiagnosticInformation.vi Purpose Executes the UDS ClearDiagnosticInformation service. Clears selected Diagnostic Trouble Codes (DTCs). Format Input ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-80 ni.com Description This VI clears the diagnostic information on the ECU memory. If the group of DTC parameter is present, the ECU is requested to clear all memory including the DTCs. For fu...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-81 Automotive Diagnostic Command Set User Manual UDS CommunicationControl.vi Purpose Executes the UDS CommunicationControl service. Use this VI to switch transmission and/or reception of the normal commu...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-83 Automotive Diagnostic Command Set User Manual UDS ControlDTCSetting.vi Purpose Executes the UDS ControlDTCSetting service. Modifies Diagnostic Trouble Code (DTC) generation behavior. Format Input diag...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-85 Automotive Diagnostic Command Set User Manual UDS DiagnosticSessionControl.vi Purpose Executes the UDS DiagnosticSessionControl service. Sets up the ECU in a specific diagnostic mode. Format Input dia...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-89 Automotive Diagnostic Command Set User Manual UDS InputOutputControlByIdentifier.vi Purpose Executes the UDS InputOutputControlByIdentifier service. Modifies ECU I/O port behavior. Format Input data i...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-91 Automotive Diagnostic Command Set User Manual UDS ReadDataByIdentifier.vi Purpose Executes the UDS ReadDataByIdentifier service. Reads a data record from the ECU. Format Input diag ref in specifies th...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-93 Automotive Diagnostic Command Set User Manual UDS ReadMemoryByAddress.vi Purpose Executes the UDS ReadMemoryByAddress service. Reads data from the ECU memory. Format Input diag ref in specifies the di...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-95 Automotive Diagnostic Command Set User Manual UDS ReportDTCBySeverityMaskRecord.vi Purpose Executes the ReportDTCBySeverityMaskRecord subfunction of the UDS ReadDiagnosticTroubleCodeInformation servic...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-98 ni.com UDS ReportDTCByStatusMask.vi Purpose Executes the ReportDTCByStatusMask subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads selected Diagnostic Trouble Codes (...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-101 Automotive Diagnostic Command Set User Manual UDS ReportSeverityInformationOfDTC.vi Purpose Executes the ReportSeverityInformationOfDTC subfunction of the UDS ReadDiagnosticTroubleCodeInformation ser...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-104 ni.com UDS ReportSupportedDTCs.vi Purpose Executes the ReportSupportedDTCs subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads all supported Diagnostic Trouble Codes...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-109 Automotive Diagnostic Command Set User Manual UDS RoutineControl.vi Purpose Executes the UDS RoutineControl service. Executes a routine on the ECU. Format Input mode defines the service operation mod...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-117 Automotive Diagnostic Command Set User Manual UDS WriteMemoryByAddress.vi Purpose Executes the UDS WriteMemoryByAddress service. Writes data to the ECU memory. Format Input data in defines the memory...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-119 Automotive Diagnostic Command Set User Manual OBD (On-Board Diagnostics) Services OBD Clear Emission Related Diagnostic Information.vi Purpose Executes the OBD Clear Emission Related Diagnostic Infor...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-121 Automotive Diagnostic Command Set User Manual OBD Request Control Of On-Board Device.vi Purpose Executes the OBD Request Control Of On-Board Device service. Modifies ECU I/O port behavior. Format Inp...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-123 Automotive Diagnostic Command Set User Manual OBD Request Current Powertrain Diagnostic Data.vi Purpose Executes the OBD Request Current Powertrain Diagnostic Data service. Reads a data record from t...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-125 Automotive Diagnostic Command Set User Manual OBD Request Emission Related DTCs.vi Purpose Executes the OBD Request Emission Related DTCs service. Reads all emission-related Diagnostic Trouble Codes ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW Automotive Diagnostic Command Set User Manual 5-128 ni.com OBD Request Emission Related DTCs During Current Drive Cycle.vi Purpose Executes the OBD Request Emission Related DTCs During Current Drive Cycle service. Reads the emission-related...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-131 Automotive Diagnostic Command Set User Manual OBD Request On-Board Monitoring Test Results.vi Purpose Executes the OBD Request On-Board Monitoring Test Results service. Reads a test data record from ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-133 Automotive Diagnostic Command Set User Manual OBD Request Powertrain Freeze Frame Data.vi Purpose Executes the OBD Request Powertrain Freeze Frame Data service. Reads an ECU data record stored while ...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-135 Automotive Diagnostic Command Set User Manual OBD Request Supported PIDs.vi Purpose Executes the OBD Request Current Powertrain Diagnostic Data service to retrieve the valid PID values for this servi...
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW © National Instruments Corporation 5-137 Automotive Diagnostic Command Set User Manual OBD Request Vehicle Information.vi Purpose Executes the OBD Request Vehicle Information service. Reads a set of information data from the ECU. Format Inp...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-2 ni.com List of Data Types The following data types are used with the Automotive Diagnostic Command Set API for C functions. Table 6-1. Data Types for the Automotive Diagnostic Command Set for C Da...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-3 Automotive Diagnostic Command Set User Manual List of Functions The following table contains an alphabetical list of the Automotive Diagnostic Command Set API functions. Table 6-2. Functions for the Automoti...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-12 ni.com General Functions ndCloseDiagnostic Purpose Closes a diagnostic session. Format long ndCloseDiagnostic( TD1 *diagRefIn); Input diagRefIn Specifies the diagnostic session handle, obtained f...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-13 Automotive Diagnostic Command Set User Manual ndConvertFromPhys Purpose Converts a physical data value into a binary representation using a type descriptor. Format void ndConvertFromPhys( TD2 *typeDescripto...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-15 Automotive Diagnostic Command Set User Manual ndConvertToPhys Purpose Converts a binary representation of a value into its physical value using a type descriptor. Format void ndConvertToPhys( TD2 *typeDescr...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-17 Automotive Diagnostic Command Set User Manual ndCreateExtendedCANIds Purpose Creates diagnostic CAN identifiers according to ISO 15765-2. Format void ndCreateExtendedCANIds ( unsigned short addressingMode, ...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-19 Automotive Diagnostic Command Set User Manual ndDiagnosticService Purpose Executes a generic diagnostic service. If a special service is not available through the KWP2000, UDS, or OBD service functions, you...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-20 ni.com Return Value The return value indicates the function call status as a signed 32-bit integer. Zero means the function executed successfully. A negative value specifies an error, which means...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-21 Automotive Diagnostic Command Set User Manual ndDTCToString Purpose Returns a string representation (such as P1234 ) for a 2-byte diagnostic trouble code (DTC). Format void ndDTCToString( unsigned long DTCN...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-22 ni.com ndGetProperty Purpose Gets a diagnostic global internal parameter. Format void ndGetProperty( unsigned short propertyID, unsigned long *propertyValue); Input propertyID Defines the paramet...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-24 ni.com ndOBDOpen Purpose Opens a diagnostic session on a CAN port for OBD-II. Format long ndOBDOpen ( char CANInterface[], unsigned long baudrate, unsigned long transmitID, unsigned long receiveI...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-26 ni.com ndOpenDiagnostic Purpose Opens a diagnostic session on a CAN port. Communication to the ECU is not yet started. Format long ndOpenDiagnostic( char CANInterface[], unsigned long baudrate, u...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-31 Automotive Diagnostic Command Set User Manual Status Code Use The application code should check the status returned from every Automotive Diagnostic Command Set function. If an error is detected, close all ...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-32 ni.com ndVWTPConnect Purpose Establishes a connection channel to an ECU using the VW TP 2.0. Format long ndVWTPConnect( TD1 *diagRef, unsigned long channelID, unsigned char applicationType); Inpu...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-35 Automotive Diagnostic Command Set User Manual ndVWTPDisconnect Purpose Terminates a connection channel to an ECU using the VW TP 2.0. Format long ndVWTPDisconnect( TD1 *diagRef); Input diagRef Specifies the...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-36 ni.com KWP2000 Services ndClearDiagnosticInformation Purpose Executes the ClearDiagnosticInformation service. Clears selected Diagnostic Trouble Codes (DTCs). Format long ndClearDiagnosticInforma...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-38 ni.com ndControlDTCSetting Purpose Executes the ControlDTCSetting service. Modifies the generation behavior of selected Diagnostic Trouble Codes (DTCs). Format long ndControlDTCSetting( TD1 *diag...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-40 ni.com ndDisableNormalMessageTransmission Purpose Executes the DisableNormalMessageTransmission service. The ECU no longer transmits its regular communication messages (usually CAN messages). For...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-41 Automotive Diagnostic Command Set User Manual ndECUReset Purpose Executes the ECUReset service. Resets the ECU. Format long ndECUReset( TD1 *diagRef, unsigned char mode, LVBoolean *success); Input diagRef S...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-43 Automotive Diagnostic Command Set User Manual ndEnableNormalMessageTransmission Purpose Executes the EnableNormalMessageTransmission service. The ECU starts transmitting its regular communication messages (...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-44 ni.com ndInputOutputControlByLocalIdentifier Purpose Executes the InputOutputControlByLocalIdentifier service. Modifies the ECU I/O port behavior. Format long ndInputOutputControlByLocalIdentifie...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-48 ni.com ndReadDTCByStatus Purpose Executes the ReadDiagnosticTroubleCodesByStatus service. Reads selected Diagnostic Trouble Codes (DTCs). Format long ndReadDTCByStatus( TD1 *diagRef, unsigned cha...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-49 Automotive Diagnostic Command Set User Manual DTCDescriptor A struct that describes the DTC records the ECU delivers: typedef struct { long DTCByteLength; long StatusByteLength; long AddDataByteLength; unsi...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-51 Automotive Diagnostic Command Set User Manual ndReadECUIdentification Purpose Executes the ReadECUIdentification service. Returns ECU identification data. Format long ndReadECUIdentification( TD1 *diagRef, ...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-53 Automotive Diagnostic Command Set User Manual ndReadMemoryByAddress Purpose Executes the ReadMemoryByAddress service. Reads data from the ECU memory. Format long ndReadMemoryByAddress( TD1 *diagRef, unsigne...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-55 Automotive Diagnostic Command Set User Manual ndReadStatusOfDTC Purpose Executes the ReadStatusOfDiagnosticTroubleCodes service. Reads selected Diagnostic Trouble Codes (DTCs). Format long ndReadStatusOfDTC...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-58 ni.com ndRequestRoutineResultsByLocalIdentifier Purpose Executes the RequestRoutineResultsByLocalIdentifier service. Returns results from an ECU routine. Format long ndRequestRoutineResultsByLoca...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-60 ni.com ndRequestSeed Purpose Executes the SecurityAccess service to retrieve a seed from the ECU. Format long ndRequestSeed( TD1 *diagRef, unsigned char accessMode, unsigned char seedOut[], long ...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-64 ni.com ndStartDiagnosticSession Purpose Executes the StartDiagnosticSession service. The ECU is set up in a specific diagnostic mode. Format long ndStartDiagnosticSession( TD1 *diagRef, unsigned ...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-66 ni.com ndStartRoutineByLocalIdentifier Purpose Executes the StartRoutineByLocalIdentifier service. Executes a routine on the ECU. Format long ndStartRoutineByLocalIdentifier( TD1 *diagRef, unsign...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-68 ni.com ndStopDiagnosticSession Purpose Executes the StopDiagnosticSession service. Returns the ECU to normal mode. Format long ndStopDiagnosticSession( TD1 *diagRef, LVBoolean *success); Input di...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-75 Automotive Diagnostic Command Set User Manual ndWriteMemoryByAddress Purpose Executes the WriteMemoryByAddress service. Writes data to the ECU memory. Format long ndWriteMemoryByAddress( TD1 *diagRef, unsig...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-77 Automotive Diagnostic Command Set User Manual UDS (DiagOnCAN) Services ndUDSClearDiagnosticInformation Purpose Executes the UDS ClearDiagnosticInformation service. Clears selected Diagnostic Trouble Codes (...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-79 Automotive Diagnostic Command Set User Manual ndUDSCommunicationControl Purpose Executes the UDS CommunicationControl service. Switches transmission and/or reception of the normal communication messages (us...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-81 Automotive Diagnostic Command Set User Manual ndUDSControlDTCSetting Purpose Executes the UDS ControlDTCSetting service. Modifies Diagnostic Trouble Code (DTC) behavior. Format long ndUDSControlDTCSetting( ...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-82 ni.com ndUDSDiagnosticSessionControl Purpose Executes the UDS DiagnosticSessionControl service. The ECU is set up in a specific diagnostic mode. Format long ndUDSDiagnosticSessionControl( TD1 *di...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-83 Automotive Diagnostic Command Set User Manual ndUDSECUReset Purpose Executes the UDS ECUReset service. Resets the ECU. Format long ndUDSECUReset( TD1 *diagRef, unsigned char mode, LVBoolean *success); Input...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-87 Automotive Diagnostic Command Set User Manual ndUDSReadDataByIdentifier Purpose Executes the UDS ReadDataByIdentifier service. Reads an ECU data record. Format long ndUDSReadDataByIdentifier( TD1 *diagRef, ...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-89 Automotive Diagnostic Command Set User Manual ndUDSReadMemoryByAddress Purpose Executes the UDS ReadMemoryByAddress service. Reads data from the ECU memory. Format long ndUDSReadMemoryByAddress( TD1 *diagRe...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-91 Automotive Diagnostic Command Set User Manual ndUDSReportDTCBySeverityMaskRecord Purpose Executes the ReportDTCBySeverityMaskRecord subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-94 ni.com ndUDSReportDTCByStatusMask Purpose Executes the ReportDTCByStatusMask subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads selected Diagnostic Trouble Codes (DTCs). F...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-97 Automotive Diagnostic Command Set User Manual ndUDSReportSeverityInformationOfDTC Purpose Executes the ReportSeverityInformationOfDTC subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Rea...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-100 ni.com ndUDSReportSupportedDTCs Purpose Executes the ReportSupportedDTCs subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads all supported Diagnostic Trouble Codes (DTCs)....
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-103 Automotive Diagnostic Command Set User Manual ndUDSRequestSeed Purpose Executes the UDS SecurityAccess service to retrieve a seed from the ECU. Format long ndUDSRequestSeed( TD1 *diagRef, unsigned char acc...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-105 Automotive Diagnostic Command Set User Manual ndUDSRoutineControl Purpose Executes the UDS RoutineControl service. Executes a routine on the ECU. Format long ndUDSRoutineControl( TD1 *diagRef, unsigned sho...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-109 Automotive Diagnostic Command Set User Manual ndUDSTesterPresent Purpose Executes the UDS TesterPresent service. Keeps the ECU in diagnostic mode. Format long ndUDSTesterPresent( TD1 *diagRef, LVBoolean *r...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-111 Automotive Diagnostic Command Set User Manual ndUDSWriteDataByIdentifier Purpose Executes the UDS WriteDataByIdentifier service. Writes a data record to the ECU. Format long ndUDSWriteDataByIdentifier( TD1...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-113 Automotive Diagnostic Command Set User Manual ndUDSWriteMemoryByAddress Purpose Executes the UDS WriteMemoryByAddress service. Writes data to the ECU memory. Format long ndUDSWriteMemoryByAddress( TD1 *dia...
Chapter 6 Automotive Diagnostic Command Set API for C © National Instruments Corporation 6-115 Automotive Diagnostic Command Set User Manual OBD (On-Board Diagnostics) Services ndOBDClearEmissionRelatedDiagnosticInformation Purpose Executes the OBD Clear Emission Related Diagnostic Information servi...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-116 ni.com ndOBDRequestControlOfOnBoardDevice Purpose Executes the OBD Request Control Of On-Board Device service. Modifies ECU I/O port behavior. Format long ndOBDRequestControlOfOnBoardDevice( TD1...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-118 ni.com ndOBDRequestCurrentPowertrainDiagnosticData Purpose Executes the OBD Request Current Powertrain Diagnostic Data service. Reads an ECU data record. Format long ndOBDRequestCurrentPowertrai...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-120 ni.com ndOBDRequestEmissionRelatedDTCs Purpose Executes the OBD Request Emission Related DTCs service. Reads all emission-related Diagnostic Trouble Codes (DTCs). Format long ndOBDRequestEmissio...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-122 ni.com ndOBDRequestEmissionRelatedDTCsDuringCurrentDriveCycle Purpose Executes the OBD Request Emission Related DTCs During Current Drive Cycle service. Reads the emission-related Diagnostic Tro...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-124 ni.com ndOBDRequestOnBoardMonitoringTestResults Purpose Executes the OBD Request On-Board Monitoring Test Results service. Reads an ECU test data record. Format long ndOBDRequestOnBoardMonitorin...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-126 ni.com ndOBDRequestPowertrainFreezeFrameData Purpose Executes the OBD Request Powertrain Freeze Frame Data service. Reads an ECU data record stored while a diagnostic trouble code occurred. Form...
Chapter 6 Automotive Diagnostic Command Set API for C Automotive Diagnostic Command Set User Manual 6-128 ni.com ndOBDRequestVehicleInformation Purpose Executes the OBD Request Vehicle Information service. Reads a set of information data from the ECU. Format long ndOBDRequestVehicleInformation( TD1 ...
National Instruments Manuals
-
National Instruments SCC-AI01
Manual
-
National Instruments USB-6008/6009
Manual
-
National Instruments 7334
Manual
-
National Instruments NI 9403E
Manual
-
National Instruments DIO 6533
Manual
-
National Instruments NI PCI-5114
Manual
-
National Instruments 1000DC
Manual
-
National Instruments 321518A-01
Manual
-
National Instruments NI 5672
Manual
-
National Instruments USB-9221
Manual
-
National Instruments PCI
Manual
-
National Instruments NI 9229
Manual
-
National Instruments 6211
Manual
-
National Instruments NI 9217
Manual
-
National Instruments NI USB-6009
Manual
-
National Instruments NI sbRIO-960x
Manual
-
National Instruments 6024E
Manual
-
National Instruments 3.x
Manual
-
National Instruments NI 784xR
Manual
-
National Instruments NI-Motion
Manual