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

How to Send Manually Defined Diagnostic Service Requests Using CAPL

Last updated: 2017-11-09
Question:
I have a diagnostic description which does not contain all diagnostic services which I need to use. How can I additionally send manually defined diagnostic service requests using CAPL? How can I send those diagnostic requests periodically?
 
Answer:

In the Diagnostic Console, it is possible to Create raw values and manually send the new diagnostic requests. 


 
If you want to send additionally defined diagnostics services using CAPL, the best way is to:

  1. First add an Additional Description to extend your diagnostic description (CDD, ODX/PDX or MDX) with new diagnostics services using a Basic Diagnostics Description.


    Note:

    Additional descriptions are a feature that has been introduced for CANoe 9.0
    The following example code shows you how to periodically send such a request using CAPL:

    variables
    {
      mstimer tVoltageRead;
    }

    on timer tVoltageRead
    {
      diagRequest ECUIdentifier.DID_Voltage_Read req;

      req.SendRequest();
    }

    on start
    {
        setTimerCyclic(tVoltageRead, 500);

    }

  2. Define the desired services in the Editor and add them to the new created Diagnostics Console.



  3. In the CAPL Symbol Explorer, the additionally defined services can be found and used in your CAPL Code to send the Request using SendDiagRequest:

 
Article Options
2017-11-09
Views: 78
Rate this article:  
Error(s) occurred processing form.
Please complete all required fields. Fields marked with * are required.