当前位置: 首页 > news >正文

公司网站后台导航链接怎么做/最新新闻热点事件2022

公司网站后台导航链接怎么做,最新新闻热点事件2022,网站建设虚线的代码,广西城乡和建设厅网站文章目录 一、automation 自动化二、custom actions 自定义动作常用方法如何选择要发送的诊断请求CustomActionValueList 作用Pre Action和Post Action之间交换信息 提示:如何打印软件中变量报错:无法打开源文件 Windows.h stdio.h conio.h报错&#xff…

文章目录

  • 一、automation 自动化
  • 二、custom actions 自定义动作
    • 常用方法
    • 如何选择要发送的诊断请求
    • CustomActionValueList 作用
    • Pre Action和Post Action之间交换信息
  • 提示:如何打印软件中变量
  • 报错:无法打开源文件 Windows.h stdio.h conio.h
  • 报错:找不到 Windows SDK 版本 10.0.17763.0
  • 参考

一、automation 自动化

官方示例路径:C:\Users\Public\Documents\Vector\vFlash\10\Examples\Automation\vFlashAutomation

使用 VFlash Automation 需要有能刷写成功的工程。在 VFlash 中将工程保存为 Pack&Go 工程,文件后缀名为 .vflashpack

二、custom actions 自定义动作

官方示例路径:C:\Users\Public\Documents\Vector\vFlash\10\Examples\CustomActions

  1. 根据上方参考地址,或者参考下图找到官方示例
    在这里插入图片描述
  2. CustomActionAttributes 示例工程为例,首先将该工程下的CDD文件替换为自己实际使用的CDD文件
    在这里插入图片描述
  3. 主要关注Execute 函数的实现,该函数实现的内容即为 Pre Action 或者 Post Action 执行的内容
    在这里插入图片描述
  4. 获取可发送诊断请求的ECU对象
// Get ECU object to which diagnostic requests can be sent
Ecu ecu = Application.GetEcu();
  1. 发送诊断请求
using (Request request = ecu.CreateRequest("ExtendedDiagnosticSession_Start"))
{request.Send();
}
  1. 读取DID
// ---------------------------------------------------------
// Service: Software_Version_Read (Signature: [0x] 22 F1 89)
// ---------------------------------------------------------
{using (Request request = ecu.CreateRequest("Software_Version_Read")){// Send the requestSendResult result = request.Send();if (result.Status == SendStatus.Ok){// Get the responseusing (Response response = result.Response){if (response != null && response.IsPositive){// Get parameter "SoftwareVersion" from responseParameter softwareVersionParam = response.GetParameter("SoftwareVersion");if (softwareVersionParam != null){return softwareVersionParam.Value.ToString(); // parameter value: "1.0.0"}}}}}
}

常用方法

  • controlHandle.SkipFlashing = true;:跳过刷写

如何选择要发送的诊断请求

当要发送诊断请求时,需要调用ecu.CreateRequest("ExtendedDiagnosticSession_Start"),传入的参数为字符串,而字符串则代表了我们需要发送的诊断请求。

字符串主要分为两部分:Name_Supported Service
在这里插入图片描述
字符串中不能有空格,当Name中包含空格时,使用下划线
当调用 response.GetParameter("SoftwareVersion") 时,同样字符串中不能有空格,当Name中包含空格时,需要删除空格

CustomActionValueList 作用

在一个 vFlash 项目中,自定义操作值列表CustomActionValueList的标识符应该是唯一的。
用户可以通过 VFlash 设置其值,例如创建如下标识符:

[CustomActionValueList("Skip flashing if voltage is low", new[] { "Yes", "No" }, DefaultSelection = "No" ]

在这里插入图片描述

// 获取值
customActionConfig.CustomActionValueListContainer.GetCustomActionValueList("Skip flashing if voltage is low").Selection;

Pre Action和Post Action之间交换信息

通过 CustomActionAttribute需要注意的是,在 PreAction.cs中定义后,在PostAction.cs 不能重复定义,否则会导致不能获得 PreAction.cs 设置的值。

[CustomActionAttribute("Type Identifier", CustomActionAttributeType.AsciiString, VisibleInUi = true)]

VisibleInUi = true 表示在 VFlash 窗口中显示
在这里插入图片描述

// 获取信息
string cATypeIdentifier = customActionConfig.CustomActionAttributeContainer.GetCustomActionAttribute("Type Identifier").ToString();
// 打印信息
Output.WriteLine(cATypeIdentifier);
// 修改信息
customActionConfig.CustomActionAttributeContainer.GetCustomActionAttribute("Type Identifier").Set("demo");
// 获取信息
cATypeIdentifier = customActionConfig.CustomActionAttributeContainer.GetCustomActionAttribute("Type Identifier").ToString();
// 打印信息
Output.WriteLine(cATypeIdentifier);

提示:如何打印软件中变量

使用 Output.WriteLine("string");

报错:无法打开源文件 Windows.h stdio.h conio.h

依次点击“项目——配置属性——C/C++——常规”,在“附加包含目录”中加入.h文件所在的文件夹路径
在这里插入图片描述

报错:找不到 Windows SDK 版本 10.0.17763.0

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

参考

  • vFlash的用户自定义操作-Custom Action
  • 【诊断线上活动视频合集】 ECU刷写解决方案
http://www.whsansanxincailiao.cn/news/32051640.html

相关文章:

  • 网站建设和维护/seo关键词推广话术
  • 岳阳卖房网站/搜索引擎优化常用方法
  • 做网站经营流量/推推蛙网站诊断
  • 微网站建设使用程序/搜索指数查询
  • 做百度移动网站排名软/网络建站
  • 长春疫情最新消息今天分布图/上海知名seo公司
  • wordpress自定义用户头像/优化网站关键词排名
  • 做外贸网站渠道/山西网络推广
  • 莱芜做网站建设的公司/现在什么网络推广好
  • 做网站的公司算外包公司吗/优化网站推广教程排名
  • psd模板免费下载网站/百度下载
  • 站长工具源码/活动推广方案策划
  • 四川省建设厅建造师官方网站/百度推广app
  • 深圳公司网站设计哪家好/网络营销策划的主要特点
  • 凡科免费做网站/关键词优化报价
  • c 网站购物车怎么做/百度推广怎么优化
  • seo推广排名/南宁seo外包平台
  • 济南兼职做网站/网站推广和优化的原因网络营销
  • 广元百度做网站多少钱/网站设计框架
  • 58网站怎么做优化/seo推广教程seo推广技巧
  • 大型网站 div/百度快速排名案例
  • 厦门手机网站建设公司/竞价推广课程
  • 怎么再贴吧给自己的网站做宣传/下载百度极速版免费安装
  • 湖南省专业建设公司网站/百度百科优化排名
  • 万网备案初审过了后网站能访问吗/在线企业管理培训课程
  • 潍坊网站制作 熊掌号/北京整站线上推广优化
  • 网站seo哪家公司好/网站排名优化培训课程
  • 栾城网站建设/新网站百度多久收录
  • 西安做网站企业/全网营销软件
  • 五金外贸网站/百度新闻下载安装