Skip to main content

CompleteStop

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void CompleteStop ();

Description

Indicates completion of pre-stop actions carried out in a certain node after a measurement stop has been deferred by DeferStop. Note
  • If several CAPL nodes or internal components defer a measurement stop, measurement continues until they have all indicated completion of their pre-stop actions (either by explicitly calling CompleteStop or implicitly when the timeout whose interval has been defined in the DeferStop call has passed).
  • CompleteStop may not be called before a stop request has arrived (i.e. before the on preStop handler is called).

Parameters

Return Values

Example

on preStop
{
   message ShutdownReq m;

   output(m);
   DeferStop(1000);  // measurement is stopped if ACK has not
                     // yet been received after one second
}
on message ShutdownAck
{
   CompleteStop();
}