CAPL Script

GraphicsWindowClear

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 graphicsWindowClear (char[] windowName);

Function

Temporarily deletes the contents of theCANoeGraphics Window.E.g. withTestReportAddWindowCapturea screenshot is created that contains only the data of a certain period of time.

Parameters

windowName The name of the Graphics Window.

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.

//Clear the Graphics Window to show only data from this test case
graphicsWindowClear("Graphics");
testWaitForTimeout(2000);

//Fit all signal values
graphicsWindowFit("Graphics", 1);

//Take a capture of the window and add it to the test report
TestReportAddWindowCapture("Graphics", "", "Screenshot of Graphic window");