Srinivasan
Srinivasan

Reputation: 21

Capl - simulation of TestWaitForDiagResponse (available for canoe only) through capl in canalyzer

I am using canalyzer. How to simulate the TestWaitForDiagResponse function of canoe in canalyzer using capl?

Upvotes: 0

Views: 1963

Answers (1)

codeflag
codeflag

Reputation: 191

You can use TestWaitForDiagResponse() function only with the CANalyzer pro or with CANoe.
Please note, Waiting for diagnostic events is only possible in test modules! Conventional CAPL nodes continue to operate, but only by the event-driven principle.

To call this function you have to create a test module. There are two types of TestWaitForDiagResponse function:
1. long TestWaitForDiagResponse (diagRequest request, dword timeout);
2. long TestWaitForDiagResponse (dword timeout);

For the first one you have to declare a diagnostic-object like DiagRequest ServiceQualifier request;
This function waits exactly for the declared response object with the configured protocol (P2/P2*) timings.
The second function is waiting for any response with the configured protocol (P2/P2*) timings.

Upvotes: 1

Related Questions