coTfsHeartbeatProducerCheckIfActive (Level 1)
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE NoteBefore using this function you have to call coTfsSetNodeId to set the internal node ID.
Function Syntax
Description
This function tests whether the heartbeat producer on the selected Device Under Test (DUT) is active. If heartbeat messages are detected by the DUT, then the regularity is tested across a predefined time. The test fails if the heartbeat producer is not active or works outside of the set tolerance. This test works passively, no SDO accesses are executed on the DUT.Parameters
- duration: Test duration in milliseconds, how long the regularity of the heartbeat producer should be tested.
- producerTime: Heartbeat producer time in milliseconds.
- tolerance: Permitted time deviation of the target device in milliseconds. It is recommended that you use an even value. The tolerated time-frame within which a message is still accepted is:
x - (tolerance/2) <= x <= x + (tolerance/2)