当前位置:网站首页>CANoe仿真功能之自动化序列(Automation Sequences )
CANoe仿真功能之自动化序列(Automation Sequences )
2022-07-06 09:03:00 【蚂蚁小兵】
相关文章

前言
- 可视化序列让您轻松(图形化)创建与总线相关的序列。
您可以使用系统变量、环境变量或信号创建序列。发送消息或检查信号、系统变量和环境变量的值。- 方便之处在于可以在无需要CAPL脚本可以实现简单的代码逻辑,比如
if else,设置symbol等,功能有限- 演示软硬件环境 Win10 x64 ; CANoe 11 SP2 x64


目录

Visual Sequencer (可视化序列)
新建 Sequencer
1️⃣ 如下图,新建一个sequences,命名为New_VSequence


2️⃣ 下图列出来了大部分 Visual Sequencer Commands,我们挑选一些可能用得到的指令测试看下。

Wait For Key 可以用来堵塞序列
如下图:添加了两条指令Wait For Key 和 Write Text ,运行工程后,按下 Start小按钮,序列面板会运行到Wait For Key这行command,用户按下t 后,序列器执行第二行command,向write窗口打印.

控制语句:条件判断 if else 和 循环 repeat
如下图:新建一个sequences,命名为New_VSequence_2,添加下列commands,下面的序列逻辑是:
将EngineSpeed信号循环加1,当值==100时,打印信息,>=200时,打印信息,并退退出循环,最后停止周期大宋报文
Set CAN Cyclic Frame先100ms周期发送 报文bmw::EngineStaterepeat循环控制语句Set语句:设置信号或者变量值if else:条件判断Repeat End:结束循环

Set CAN Raw Frame 新建DBC未定义的报文
如下图:新建一个sequences,命名为New_VSequence_3,添加下列commands,下面的序列逻辑是:
新建一个ID=0x20的报文,然后周期发送该报文,2000ms后,将该报文BYTE1设置成0xFF;3000ms后,结束周期发送该报文
Set CAN Raw Frame创建或者修改dbc文件未定义报文Set CAN Cyclic Raw Frame周期发送dbc文件未定义报文


其它功能
如下图,圈起来的时连续执行该序列还是只执行一次 ; 是不是当运行CANoe之后就自动执行该序列

如下图,可以将这些序列代码导出到文件,可以复用等等

| End |
总结


上面就是 CANoe仿真功能之自动化序列之Visual Sequencer (可视化序列)的大部分功能介绍了,Mcros和Net Snippets就不介绍了,因为我也没弄清;至于这个功能在实际项目中用处大不大,怎么用,那就看各位发挥啦。
有需要演示中所用demo工程的,可以关注下方公众号网盘自取啦,感谢阅读。
- 要有最朴素的生活,最遥远的梦想,即使明天天寒地冻,路遥马亡!
- 有手机的小伙伴可以加下交流群,在车载诊断领域的一个小小圈子,群里有
网盘资料,源码,可能有你需要的呢,平时可以交流技术,聊聊工作机会啥的。- 如果这篇博客对你有帮助,请 “点赞” “评论”“收藏”一键三连 哦!码字不易,大家的支持就是我坚持下去的动力。
边栏推荐
- 单片机如何从上电复位执行到main函数?
- Global and Chinese market of AVR series microcontrollers 2022-2028: Research Report on technology, participants, trends, market size and share
- 五月集训总结——来自阿光
- 机械工程师和电气工程师方向哪个前景比较好?
- 五月刷题03——排序
- MapReduce instance (VIII): Map end join
- Activiti7工作流的使用
- Nc29 search in two-dimensional array
- Servlet learning diary 7 -- servlet forwarding and redirection
- Redis distributed lock implementation redison 15 questions
猜你喜欢

Interview shock 62: what are the precautions for group by?

What are the models of data modeling

MapReduce instance (V): secondary sorting

手把手教您怎么编写第一个单片机程序

Hero League rotation map automatic rotation

Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable

听哥一句劝,按这套嵌入式的课程内容和课程体系去学习

tn-c为何不可用2p断路器?

Elk project monitoring platform deployment + deployment of detailed use (II)

Minio distributed file storage cluster for full stack development
随机推荐
MapReduce工作机制
Global and Chinese market of airport kiosks 2022-2028: Research Report on technology, participants, trends, market size and share
为拿 Offer,“闭关修炼,相信努力必成大器
Cap theory
Libuv thread
单片机如何从上电复位执行到main函数?
基于B/S的影视创作论坛的设计与实现(附:源码 论文 sql文件 项目部署教程)
【深度学习】语义分割:论文阅读:(CVPR 2022) MPViT(CNN+Transformer):用于密集预测的多路径视觉Transformer
有软件负载均衡,也有硬件负载均衡,选择哪个?
Hero League rotation chart manual rotation
A wave of open source notebooks is coming
MapReduce working mechanism
一文读懂,DDD落地数据库设计实战
June brush question 02 - string
Solve the problem of inconsistency between database field name and entity class attribute name (resultmap result set mapping)
五月刷题01——数组
MapReduce instance (VI): inverted index
018. Valid palindromes
Design and implementation of online snack sales system based on b/s (attached: source code paper SQL file)
Regular expressions are actually very simple
