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'.

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.
Advanced search

How to Create diagRequest/diagResponse-Object by Using a String-Variable in CAPL

Last updated: 2019-01-10
How can I create a diagRequest/diagResponse-object by using a String-Variable in CAPL?

If the Service Qualifier for a diagnostic service is provided as string, it is possible to re-initialize an already existing diagRequest/diagResponse-object by using the CAPL-function diagInitialize.

Please take into consideration, that the ECU-qualifier is not submitted to this function which means that the target ECU has to be specified before.

This can be done either by using the function diagSetTarget or by specifying the ECU-qualifier at the initialization of the diagRequest/diagResponse-object:

diagRequest * req;
diagInitialize(req, “serviceQualifier”);


or (supported since CANoe 9.0 SP3)

diagRequest Door.* req;
diagInitialize(req, “serviceQualifier”);



Please find enclosed a zip-file:

  • The CANoe-Demo contains a test module for testing different diagnostic sessions. The diagnostic services within this module are reinitialized by diagInitialize. The test module`s test report will be stored in the directory Testreport.
  • The example can be used with CANoe 10.0 and higher. The corresponding Diagnostic Description (CDD) is provided in CANdelaStudio 8.5-Format.
Article Options
Views: 2168