【问题标题】:Capl - simulation of TestWaitForDiagResponse (available for canoe only) through capl in canalyzerCapl - 通过 canalyzer 中的 capl 模拟 TestWaitForDiagResponse(仅适用于独木舟)
【发布时间】:2016-05-13 07:25:15
【问题描述】:

我正在使用分析仪。如何使用capl在canalyzer中模拟canoe的TestWaitForDiagResponse函数?

【问题讨论】:

  • TestWaitForDiagResponse 函数据我所知仅适用于独木舟。如何通过 capl 模拟 canalyzer 中函数的行为
  • 或者canalyzer有没有等价的功能...这个是在规定时间内是否得到诊断响应

标签: capl


【解决方案1】:

您只能在 CANalyzer pro 或 CANoe 中使用TestWaitForDiagResponse() 功能。
请注意,等待诊断事件只能在测试模块中进行!传统的 CAPL 节点继续运行,但仅通过事件驱动的原则。

要调用此函数,您必须创建一个测试模块。 TestWaitForDiagResponse 函数有两种类型:
1. long TestWaitForDiagResponse (diagRequest request, dword timeout);
2. long TestWaitForDiagResponse (dword timeout);

对于第一个,您必须声明一个诊断对象,如DiagRequest ServiceQualifier request;
此函数完全等待声明的响应对象与配置的协议 (P2/P2*) 时间。
第二个功能是等待配置协议 (P2/P2*) 时序的任何响应。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-05-07
    • 1970-01-01
    • 1970-01-01
    • 2021-06-15
    • 2018-06-27
    • 2019-10-14
    • 2019-02-11
    • 2019-09-23
    相关资源
    最近更新 更多