CAPL Script

SetVideoOfflineLoggerCam

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.

Note This function is only allowed inon preStartevent procedure. This function is only valid forOfflinesourceImagefolder (2|cImageFolder), for details seeSetVideoOfflineSource.

Syntax

SetVideoOfflineLoggerCam(char windowName[], long camType, [char filePrefix[]]);

Function

Sets the offline mode logger cam (type and prefix) for a CANoe Video Window .

Parameters

windowName The name of the Video Window.

camType

  • 0|cCamlog2
  • 1|cHostCam

filePrefix

The corresponding prefix of the image files generated by the cam. ForcCamlog2this can be omitted. For details see theImage Files Propertiesin theCANoeVideo Configurationdialog.

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 preStart
{
//Configure offline source (image files)
SetVideoOfflineSource("Video Window", 2, "..\\Measurement\\VideoFrames");
//Configure pattern to parse the time stamps of the images
SetVideoOfflineLoggerCam("Video Window", 1, "CAM1_");
}

SetVideoOfflineSource | SetVideoRecordFile | SetVideoTriggerTimes | StartVideoRecording | StopVideoRecording