CAPL Script

SetDrift

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Syntax

void setDrift(int drift)

Function

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.

Parameters

drift Integer for the constant deviation.

Return Values

—

Reference example from the CANoe 12 help. This is an incomplete context fragment: omitted surrounding code is shown as comments. Do not paste it as a complete program.

// ... surrounding context omitted

// Sets the Drift to 35.5 percent
setDrift(3550);
// ... surrounding context omitted

setJitter | getDrift | getJitterMin | getJitterMax