This example uses a List Widget to display a list of DM2 fault codes retrieved from a engines ECU.
To make the code more transportable script routines are used to make most of the Event calls.
DM2 messages need to be requested from the ECU, this is made easy using the built in function in the Diagnostics app which handles sending the request and then receiving the reply back and populating the DM2 List. A status variable provides feedback as to what state the activity is in.
Displaying the data is a simple process of binding the list widget fields to the DM2 List which will contain all the data.
Download the Example for a PV780B in 2.9.23044