CAPL Script

DeferStop

Syntax

void DeferStop(dword maxDeferTime)

Function

Defers measurement stop. The function can be called in theon preStophandler or even at an earlier time instance. Measurement is deferred untilCompleteStopis called in the same node or the simulation time has advanced by the amount given in parameter maxDeferTime since the arrival of a stop request (and call of the on preStop handler). DeferStopenables waiting for completion of activities that have to be carried out before measurement stop takes effect, e.g. a reset of an attached ECU.

Parameters

maxDeferTime Indicates the time interval in milliseconds after which completion of pre-stop activities is indicated automatically if it has not yet been done explicitly viaCompleteStop.

Return Values

on preStop{message ShutdownReq m;output(m);DeferStop(1000);}on message ShutdownAck{CompleteStop();}