Contact us
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

Logging Block Control by Test Modules

Last updated: 2019-03-14
Question:
How can test modules control the logging block to change the filename of logging during a test?
Answer:
For CANoe < 7.6 SP3
Example for one single logging block, can easily be extended for multiple logging blocks (for CANoe < 7.6 SP3):
  • Insert a system variable that should contain the name of the current logging file.
  • Insert (or extend an already existing) CAPL block in the measurement setup. This CAPL block is to be located in the analysis branch that directs to the logging block you want to control.
  • Adapt the following example code to your needs:

    on sysvar_update sysvar::Logging_Test::StartLoggingWithNewName
    {
      char fileName [1000];
      sysGetVariableString(this, fileName, 1000);
      stopLogging();
      setLogFileName(fileName);
      startLogging();
    }
  • Within the test module, just set the system variable's content to the filename of the intended logging. For example at the beginning of a test module, or a test case, whatever matches your needs.

For CANoe > 7.6 SP3
The log file name can be directly set with: setLogFileName(char strLoggingBlockName[], char fileName[]);

 
Article Options
2019-03-14
Views: 4420
Rate this article:  
Error(s) occurred processing form.
Please complete all required fields. Fields marked with * are required.