当前位置:网站首页>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工程的,可以关注下方公众号网盘自取啦,感谢阅读。
- 要有最朴素的生活,最遥远的梦想,即使明天天寒地冻,路遥马亡!
- 有手机的小伙伴可以加下交流群,在车载诊断领域的一个小小圈子,群里有
网盘资料,源码,可能有你需要的呢,平时可以交流技术,聊聊工作机会啥的。- 如果这篇博客对你有帮助,请 “点赞” “评论”“收藏”一键三连 哦!码字不易,大家的支持就是我坚持下去的动力。
边栏推荐
猜你喜欢

基于WEB的网上购物系统的设计与实现(附:源码 论文 sql文件)
![[Yu Yue education] reference materials of complex variable function and integral transformation of Shenyang University of Technology](/img/01/8c0b8ea397c601311ae45acaaf00da.jpg)
[Yu Yue education] reference materials of complex variable function and integral transformation of Shenyang University of Technology

Redis' bitmap

MapReduce工作机制

面试突击62:group by 有哪些注意事项?

单片机实现模块化编程:思维+实例+系统教程(实用程度令人发指)

Full stack development of quartz distributed timed task scheduling cluster

Detailed explanation of cookies and sessions

What you have to know about network IO model

Sqlmap installation tutorial and problem explanation under Windows Environment -- "sqlmap installation | CSDN creation punch in"
随机推荐
What are the models of data modeling
MySQL数据库优化的几种方式(笔面试必问)
Global and Chinese market of bank smart cards 2022-2028: Research Report on technology, participants, trends, market size and share
Selection of software load balancing and hardware load balancing
面试突击62:group by 有哪些注意事项?
Compilation of libwebsocket
In order to get an offer, "I believe that hard work will make great achievements
May brush question 26 - concurrent search
IDS cache preheating, avalanche, penetration
Global and Chinese market of metallized flexible packaging 2022-2028: Research Report on technology, participants, trends, market size and share
【深度学习】语义分割:论文阅读(NeurIPS 2021)MaskFormer: per-pixel classification is not all you need
Redis cluster
June brush question 01 - array
Global and Chinese market of electric pruners 2022-2028: Research Report on technology, participants, trends, market size and share
工作流—activiti7环境搭建
Why data Tiering
MapReduce instance (IX): reduce end join
[Yu Yue education] Wuhan University of science and technology securities investment reference
Global and Chinese market of electronic tubes 2022-2028: Research Report on technology, participants, trends, market size and share
六月刷题02——字符串
