can-buscaplcanoe

how to redirect the trace window output to a file in CANoe


i would like to get all the data present in the trace window to my text file, even log recording can help but it can't display date and time in that file, so i've a plan to copy entire trace window to file.

i've tried to do ctrl+a and paste in notepad, but it is just copying some sort of area only not all.

i would like to know is there any chance to redirect how trace window is printing like that i can see in text file, or at least is there any way to copy entire file and paste in text file.


Solution

  • You could pretty-print it to the write window using CAPL:

    on message *
    {
      int i;
    
      write("[%07.3f] %03X", this.time / 100000.0, this.id);
      for (i = 0; i < this.dlc; i++)
        writeEx(0, 0, " %02X", this.byte(i));
    }
    

    And then export it to a file.


    Or you write it directly to a file.