Start Periodic TesterPresent.vi
- Updated2025-10-07
- 4 minute(s) read
Purpose
Starts a background thread for the current diagnostic session that periodically transmits a TesterPresent message. Format
Input
|
period [sec] is the transmit period of the periodic message. Note that the periodic message is inhibited while the user sends regular messages. | |||||||||
|
diag ref in specifies the diagnostic session handle, obtained from Open Diagnostic on CAN FD.vi and wired through subsequent diagnostic VIs. Typically, it is not necessary to manipulate the elements of this cluster manually. | |||||||||
|
message type defines the periodic message to be sent. Choices are:
|
|||||||||
|
response required? specifies whether the periodic message will have a response. | |||||||||
|
error in is a cluster that describes error conditions occurring before the VI executes. If an error has already occurred, the VI returns the value of the error in cluster to error out.
|
|||||||||
|
user message defines the periodic service request message to be sent to the ECU as a stream of bytes for the User Defined message type. |
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 indicates an error, the error out cluster contains the same information. Otherwise, error out describes the error status of this VI.
|
Description
Often it is necessary to transmit a TesterPresent service to keep a diagnostic session alive in the ECU. This VI automatically transmits a periodic TesterPresent message in the context of the current diagnostic session, as long as no other communication takes place. The automatic transmissions do not interfere with the regular diagnostic communication the user initiates.




