CAPL Script

Setstartdelay

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 setStartdelay(int delay)

Function

Sets the value of the Start Delay for this network node. This function can only be called in the preStart event procedure. Afterwards the value of the Start Delaycannotbe changed any more.

Parameters

delayText Integer for the Start Delay ms. This value may lie between 0 and 99999. If the value is greater or less than the limits of this range a warning appears in the Write Window.

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

on preStart
{
// Set Start Delay to 10 seconds
setStartdelay(10000);
}