Skip to main content

coTfsSyncProducerDetail (Level 2)

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE

Function Syntax

long coTfsSyncProducerDetail( dword duration, dword producerTime, dword tolerance, dword maxCounter );

Description

Configures the objects 0x1005, 0x1006 and 0x1019 in the object dictionary of the DUT (Device Under Test). After this, the sync messages generated by the sync producer (DUT) are checked for their regularity. The permissible total deviation is specified in tolerance. After the test, the values of objects 0x1005 and 0x1006 in the object dictionary of the DUT are set back to 0. The test checks whether the sync producer really sends out no more sync messages.

Parameters

  • duration: Test duration in ms.
  • producerTime: Sync time of the sync producer (DUT) in ms.
  • tolerance: Permitted time deviation of the target device in ms. 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)
  • maxCounter: 1 < counter < 241; value, which will be written to object 0x1019

Return Values

Error code

Example

if ( coTfsSyncProducerDetail( 3000, 100, 20, 200) != 1) {
  write("coTfsSyncProducerDetail failed");
}