Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » setDrift

setDrift

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

Function Syntax

void setDrift(int drift);

Description

A constant deviation can be set for the timers of a network node with this function. Inputs for the two values may lie between –10000 and 10000 (corresponds to –100.00% to 100.00%). If the value does not lie within this range, a message is output in the Write Window. Note: Setting of a Drift causes any existing Jitter to be reset.

Parameters

  • drift: Integer for the constant deviation.

Return Values

Example

...
// Sets the Drift to 35.5 percent
setDrift(3550);
...
setJittergetDriftgetJitterMingetJitterMax