SetPostTrigger
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
setPostTrigger(long PostTriggerTime);
Function
Sets the posttrigger of the logging. The posttrigger set with this function is valid until the end of the measurement or until the next call of this function. Note: The functionstopLogging()does not consider the setting with function ‘setPostTrigger’, use the CAPL functiontrigger()instead.
Parameters
New posttrigger value in milliseconds. If a value of -1 is supplied, the prosttrigger will be set to infinity.
Return Values
Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.
on start
{
SetPreTrigger(5000);
SetPostTrigger(5000);
}
on key 'x'
{
//start and stop of all CAPL trigger/Logging blocks with pre and post trigger settings
trigger();
}