Skip to main content
Open topic with navigation CAPL Functions » MOST » mostPktSetTraceColors

mostPktSetTraceColors

Valid for: CANoe DE

Function Syntax

mostPktSetTraceColors(long font, long bkgnd);

Description

Sets the text and background color for displaying the MOST event in the Trace Window. The makeRGB function can be used for the colors. Note
  • This function can only be used in Measurement Setup and is only applied to the Trace Window.
  • The setting of colors with this function has a higher priority than the color settings for events in the Trace Window.

Parameters

  • font: Font color (RGB value)
  • bkgnd: Background color (RGB value)

Return Values

  • 0: OK
  • -1: Invalid RGB value of a color.

Example

OnMostPkt (long  pktlen) 
{
    mostPktSetTraceColors(makeRGB(0, 0, 0), makeRGB(255, 0, 0) );
    outputMostPktThis(); // Forwards this packet to the node in the Measurement Setup
}
traceSetEventColors