Dtc to string.vi, Dtc to string.vi -21 – National Instruments CAN 372139B-01 User Manual

Page 47

Advertising
background image

Chapter 5

Automotive Diagnostic Command Set API for LabVIEW

© National Instruments Corporation

5-21

Automotive Diagnostic Command Set User Manual

DTC to String.vi

Purpose

Returns a string representation (such as P1234) for a 2-byte Diagnostic Trouble Code (DTC).

Format

Input

DTC (num) is the DTC number as returned in the clusters of

ReadDTCByStatus.vi

,

ReadStatusOfDTC.vi

,

UDS ReportDTCBySeverityMaskRecord.vi

,

UDS ReportDTCByStatusMask.vi

,

UDS ReportSeverityInformationOfDTC.vi

,

UDS ReportSupportedDTCs.vi

,

OBD Request Emission Related

DTCs.vi

, or

OBD Request Emission Related DTCs During Current

Drive Cycle.vi

.

Note

This VI converts only 2-byte DTCs. If you feed in larger numbers, the VI returns

garbage.

Output

DTC (string) is the DTC string representation.

Description

The SAE J2012 standard specifies a naming scheme for 2-byte DTCs consisting of one letter
and four digits. Use DTC to String.vi to convert a DTC numerical representation to this
name.

Advertising