coTfsActivateHeartbeatMonitor
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DEFunction Syntax
Description
This function checks whether the DUT (Device Under Test) as heartbeat producer makes the heartbeat message available within the defined times. For each correct occurrence, the callbackvoid coTfsOnHeartbeatMsg(dword nodeId) is called. If the time is not adhered to, then the callback void coTfsOnHeartbeatFail(dword nodeId, dword cause) is called. After an error has occurred, the callback system is automatically disabled. The reason for the error is specified in the parameter cause:
- Message distance too small
- Message distance too large or message is missing
Parameters
- nodeID: Node-ID of the DUT.
- producerTime: Heartbeat time in us.
- tolerance: Permitted time deviation of the target device in us. It is recommended that you use an even value. The tolerated time frame within which a message is still accepted is:
x - (delta/2) <= x <= x + (delta/2)
Return Values
Error codeExample
coTfsActivateHeartbeatMonitor and the corresponding callback functions