![]() |
OTX Reference
|
|
Diagnostic Service More...

Diagnostic Service
A DiagService is a handle to an object representing a diagnostic service, e.g. a service for reading error codes. A DiagService handle can be used for performing a diagnostic service execution using the ExecuteDiagService action
Note: In case of a MVCI/ODX based system a DiagService handle represents a MCDDiagComPrimitive object.
Conversion terms
The following table shows the rules for conversion to another data type:
| Conversion | Result | Sample |
|---|---|---|
| ToBoolean | Undefined (should not be used) | |
| ToInteger | Undefined (should not be used) | |
| ToFloat | Undefined (should not be used) | |
| ToString | Returns the name of the diagnostic service | String s = ToString(diagServiceVariable); // Returns "DiagServiceName" |
| ToByteField | Undefined (should not be used) |
Sample