首页 文章

Capl - 在canalyzer中通过capl模拟TestWaitForDiagResponse(仅适用于独木舟)

提问于
浏览
0

我正在使用canalyzer . 如何使用capl在canalyzer中模拟独木舟的TestWaitForDiagResponse函数?

1 回答

  • 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 *)时序的任何响应 .

相关问题