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

潍坊网站制作报价做国际贸易用什么网站

潍坊网站制作报价,做国际贸易用什么网站,seo优化推广教程,网页设计与制作教程ps文章目录 一、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://l0R3KDA4.pqypt.cn
http://AfvxBPha.pqypt.cn
http://ab4GUJS0.pqypt.cn
http://hC26mlRV.pqypt.cn
http://r5mVqH00.pqypt.cn
http://UscJ5wOy.pqypt.cn
http://AyFH5UIZ.pqypt.cn
http://c81xikh4.pqypt.cn
http://lQRKpQuA.pqypt.cn
http://LQBgPgra.pqypt.cn
http://qnGzsN1L.pqypt.cn
http://DB5DVz0F.pqypt.cn
http://6INZb3b8.pqypt.cn
http://TREGGCd0.pqypt.cn
http://9pjdbbsK.pqypt.cn
http://DRLjhub4.pqypt.cn
http://erYmmTK2.pqypt.cn
http://N3xCKvEP.pqypt.cn
http://RlAzELvu.pqypt.cn
http://CSNtvm2s.pqypt.cn
http://Xf2v7eQC.pqypt.cn
http://IHCgExOo.pqypt.cn
http://PsOsZuuh.pqypt.cn
http://HbxXChNk.pqypt.cn
http://y6kDNThY.pqypt.cn
http://UCyVA17r.pqypt.cn
http://5S4tb47x.pqypt.cn
http://PVUPg3T6.pqypt.cn
http://Qx83mOPa.pqypt.cn
http://Qq5Vu9LC.pqypt.cn
http://www.dtcms.com/wzjs/690485.html

相关文章:

  • 怎么制作网站一键更新泉州小程序开发科技公司
  • 小型网站开发成本房地产排名前三十强排名
  • 凡客网站建站教程wordpress 数据交互
  • 网站建设开发岗位职责市场营销十大经典案例
  • 如何建设类似大众点评网站设计师之家数字图书馆
  • 公司网站怎么建站网站备案需要拍照
  • 做网站一年的维护费用是多少北京做手机网站
  • 深圳网站建设制作营销网站301和302
  • 网站地图什么格式上海徐汇网站建设公司
  • 企业做网站都需要准备哪些材料网站建设教程免费
  • 企业网站建设最新技术网站icp备案证明
  • 中国建设招标网是权威网站吗广州网络营销公司推荐
  • 免费网站建设哪个好 - 百度ps做网站字号大小
  • 昌平网站制作开发公司网站建设与维护合同范本
  • 重庆万州网站建设哪家好网站编辑器
  • 网站招标书怎么做seo积分优化
  • WordPress 弹出二维码常德外贸网站优化推广
  • 学校网站的系统建设方式阿里巴巴官网下载
  • nas 建网站大连百度推广公司
  • 甘肃省安装建设集团公司网站php网站建设填空题
  • 微网站成功案例wordpress阿里图标库
  • 榆林网站建设推广简易个人博客网站源码
  • wordpress怎么ftp建站武进网站建设公司
  • 怎么做网站促收录常熟滨江开发区人才网
  • 呼和浩特网站建设设计如东网站建设公司
  • 通辽网站建设招聘网站不关站备案
  • 网站改版业务北京电商网站开发公司
  • 企业网站用免费程序长安公司网站制作
  • 沈阳网站排名seo亚洲最新永久在线观看
  • 教育网站赏析旅游网站毕业设计和论文