I wrote a basic CAPL program and included it as programming node in a CANoe measurement configuration.
The node will check the content of a specific message and create a Global Marker via createGlobalMarker() if the conditions are met. A write() statement ensures that the code portion is being executed. The CANoe configuration is being used in offline mode (I don't have a licence on this machine, no vector nodes are attached, I just want to replay stuff and check it out).
In the graphics window, no marker is created. No warnings are present in the write window. Here is the code mockup:
on linframe myFrame
{
output(this)
if( /* some condition */ )
{
write("code being executed");
createGlobalMarker("A","test"); // in actual code, the name is dynamic to avoid forbidden name duplicates
}
}
From the docs,
Sets a marker in CANoe Trace Window, Graphics Window and State Tracker. The set marker can be displayed with the shortcut menu Show in the marker bar of these windows.
So I would naturally expect to see the markers. I can create one manually from the Graphics window, and that one is displayed. I can't find the shortcut menu being referred to.
The marker bar is visible in the Graphics window and I can create a new marker by double-clicking on it.