您只能在CANalyzer pro或CANoe中使用 TestWaitForDiagResponse() 功能 . 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.
要调用此函数,您必须创建一个测试模块 . TestWaitForDiagResponse函数有两种类型: 1. long TestWaitForDiagResponse (diagRequest request, dword timeout); 2. long TestWaitForDiagResponse (dword timeout);
1 回答
您只能在CANalyzer pro或CANoe中使用
TestWaitForDiagResponse()
功能 .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.
要调用此函数,您必须创建一个测试模块 . TestWaitForDiagResponse函数有两种类型:
1. long TestWaitForDiagResponse (diagRequest request, dword timeout);
2. long TestWaitForDiagResponse (dword timeout);
对于第一个,您必须声明一个诊断对象,如
DiagRequest ServiceQualifier request;
此函数使用配置的协议(P2 / P2 *)时序完全等待声明的响应对象 .
第二个功能是等待使用配置的协议(P2 / P2 *)时序的任何响应 .