DTC to String.vi
- Updated2025-10-07
- 1 minute(s) read
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 following clusters:
UDS ReportDTCBySeverityMaskRecord.vi UDS ReportSeverityInformationOfDTC.vi OBD Request Emission Related DTCs.vi 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.