CAPL Script

GraphicsWindowFit

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 graphicsWindowFit(char[] windowName, byte mode);

Function

Scales symbols in aCANoeGraphics Window.

Parameters

windowName The name of the Graphics Window.

mode

  • mode = 1: Fit all signals
  • mode = 2: Fit all signals Y
  • mode = 3: Fit X
  • mode = 4: Fit all signals to a special line
  • mode = 5: Fit all signals to a special line Y

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");