CANoe快速入门.ppt
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《CANoe快速入门.ppt》由会员分享,可在线阅读,更多相关《CANoe快速入门.ppt(97页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、 2007. HiRain Technologies. All rights reserved.Slide: 2CANoe概述概述pCAN总线开发工具p测试p分析p仿真p记录 2007. HiRain Technologies. All rights reserved.Slide: 3CANoe在总线开发中的作用(在总线开发中的作用(1)Phase 1simul.nodensimul.node2Simulated bussimul.node1Kl 15Virtual total system 2007. HiRain Technologies. All rights reserved.Slid
2、e: 4CANoe在总线开发中的作用(在总线开发中的作用(2)Phase 2simul.node2simulated rest-of-busrealnode1Kl 15simul.nodenVirtual subystemReal subsystemphys. bus 2007. HiRain Technologies. All rights reserved.Slide: 5CANoe在总线开发中的作用(在总线开发中的作用(3)Phase 3realnode2realnode1Kl 15Real total systemrealnodenPhysical busAnalysis(in rea
3、l-time) 2007. HiRain Technologies. All rights reserved.Slide: 6p硬件接口卡&“狗”pCANcardXLpCANcaseXLp收发器pCANcab (CANpiggy)p251, 1041, 1054pLINcab (LINpiggy)p7259CAN卡卡 2007. HiRain Technologies. All rights reserved.Slide: 7CANoe组成组成p功能强大、操作简单pCANoep数据库支持pCANdb+ Editorp可编程pCAPLp虚拟仪表pPanel Editor & Panel Desi
4、gner 2007. HiRain Technologies. All rights reserved.Slide: 8CANoe工程环境工程环境 2007. HiRain Technologies. All rights reserved.Slide: 9多总线多总线p软件p硬件p控制面板pVector HardwareqLicense-Overview 2007. HiRain Technologies. All rights reserved.Slide: 10设置(设置(1)p硬件pCAN卡类型(编号)p收发器类型p应用程序通道p应用程序pLicense信息 2007. HiRain
5、Technologies. All rights reserved.Slide: 11设置(设置(2)pCANoep通道设置pConfiguration-OptionspConfiguration Settings-Channel Usage 2007. HiRain Technologies. All rights reserved.Slide: 12灵活复杂灵活复杂HW channelsChannel1 Channel2 Channel1 Channel2 PiggyBack1 PiggyBack2CANcardXL #1CANcaseXLCANcardXL #2HardwareCANal
6、yzer1 CANalyzer2. CANoe1 CANoe2 CANoe1 for LIN.App channelsApplication 2007. HiRain Technologies. All rights reserved.Slide: 13从复杂到简单从复杂到简单pCANoep波特率设置pConfiguration-Hardware Configuration 2007. HiRain Technologies. All rights reserved.Slide: 14基本术语基本术语报文(消息)与信号报文(消息)与信号报文:engine data (ID 100)ID 100
7、B0B1B2CRC信号发动机温度(第二字节,0-6位)未用(第二字节,第七位)发动机转速(第一,二字节)转换规则发动机转速 :rpm=1*Bit value (0 xFF 代表错误)发动机温度: C =2* Bit value 50 (0 x7F 代表错误) 2007. HiRain Technologies. All rights reserved.Slide: 15基本术语基本术语环境变量与系统变量环境变量与系统变量p环境变量p节点的I/O信号p可用于面板或真实I/Op系统变量p节点内部参数p或需要观测的某个数值p例如:系统变量1 = 报文1.信号1 报文2.信号2 2007. HiRai
8、n Technologies. All rights reserved.Slide: 16欢迎进入欢迎进入CANoe的世界的世界pCANoepCANdb+ EditorpCAPLpPanel Editor & Panel Designer 2007. HiRain Technologies. All rights reserved.Slide: 17欢迎进入欢迎进入CANoe的世界的世界pCANoep8大窗口pTrace WindowpBus Statistics WindowpStatistics WindowpData WindowpGraphic WindowpWrite Windowp
9、Simulation SetuppMeasurement Setup 2007. HiRain Technologies. All rights reserved.Slide: 18CANoe窗口介绍(窗口介绍(1)pTrace Windowp报文ID和报文名称(数据库)p信号(数据库)p时间(相对值或绝对值)p通道pDLCpDir(Tx或Rx)p更多内容见p右键点击窗口空白处-Configuration-Columns 2007. HiRain Technologies. All rights reserved.Slide: 19蒙太奇(蒙太奇(1)p在CANoe中添加数据库pView-Si
10、mulatioin Setup 2007. HiRain Technologies. All rights reserved.Slide: 20蒙太奇(蒙太奇(2)p符号化显示与十进制/十六进制切换Global switches: Hex/Dec and Numeric/Symbolic toggles 2007. HiRain Technologies. All rights reserved.Slide: 21CANoe窗口介绍(窗口介绍(1)清空Trace窗口暂停Trace窗口时间显示切换报文显示切换 2007. HiRain Technologies. All rights reser
11、ved.Slide: 22CANoe窗口介绍(窗口介绍(2)pData Windowp数据库!p信号名称p信号值(Value)p信号单位p原始值(Raw Value)pBar图 2007. HiRain Technologies. All rights reserved.Slide: 23CANoe窗口介绍(窗口介绍(2)pData Windowp添加信号p右键单击空白处pAdd Signalsp选择需要的信号 2007. HiRain Technologies. All rights reserved.Slide: 24CANoe窗口介绍(窗口介绍(3)pGraphics Windowsp数
12、据库!p显示信号曲线p不同的颜色和线形p右键单击空白处p选择Configurationp放大、缩小、平移 2007. HiRain Technologies. All rights reserved.Slide: 25CANoe窗口介绍(窗口介绍(3)pGraphics Windowsp添加信号p右键单击空白处pAdd Signalsp选择需要的信号 2007. HiRain Technologies. All rights reserved.Slide: 26CANoe窗口介绍(窗口介绍(4)pStatistics Windowp显示报文出现频率p显示错误帧出现频率p统计报告p右键单击空白处
13、pConfigurationpActivep生成统计报告(Write Window)Message frequencyID 2007. HiRain Technologies. All rights reserved.Slide: 27CANoe窗口介绍(窗口介绍(5)pBus Statistics Windowp总线负载p数据帧p错误帧pCAN卡控制器状态 2007. HiRain Technologies. All rights reserved.Slide: 28CANoe窗口介绍(窗口介绍(6)pWrite WindowpCAN卡控制器状态pLicense信息p统计报告pCAPL输出窗
14、口pPrintf = Write 2007. HiRain Technologies. All rights reserved.Slide: 29蒙太奇(蒙太奇(3)pDesktoppCreate New DesktoppRename Desktop 2007. HiRain Technologies. All rights reserved.Slide: 30蒙太奇(蒙太奇(4)p固定窗口 2007. HiRain Technologies. All rights reserved.Slide: 31CANoe窗口介绍(窗口介绍(7)pMeasurement SetuppView-Measu
15、rement Setupp每个模块对应一个窗口p增加新模块(窗口)p插入功能块p数据记录 2007. HiRain Technologies. All rights reserved.Slide: 32CANoe窗口介绍(窗口介绍(7)p新增模块(窗口) 2007. HiRain Technologies. All rights reserved.Slide: 33CANoe窗口介绍(窗口介绍(7)p插入功能块pCAPL节点p发生器模块p回放模块p触发模块p过滤器模块 2007. HiRain Technologies. All rights reserved.Slide: 34CANoe窗口
16、介绍(窗口介绍(7)p过滤器模块p通道过滤(Channel Filter)p报文过滤(Filter)p变量过滤(Variables) 2007. HiRain Technologies. All rights reserved.Slide: 35CANoe窗口介绍(窗口介绍(7)p数据记录p默认状态关闭p多种记录文件类型p多种记录配置方式 2007. HiRain Technologies. All rights reserved.Slide: 36CANoe窗口介绍(窗口介绍(7)p记录文件p右键点击文件图标-Logging file configuration 2007. HiRain T
17、echnologies. All rights reserved.Slide: 37CANoe窗口介绍(窗口介绍(7)p记录配置方式p双击Logging模块p全部记录p单次记录p触发记录 2007. HiRain Technologies. All rights reserved.Slide: 38蒙太奇(蒙太奇(5)p 数据记录的目的是为了离线分析pMode-To Offline 2007. HiRain Technologies. All rights reserved.Slide: 39CANoe窗口介绍(窗口介绍(8)pSimulation SetuppView-Simulation
18、Setupp发生器p交互式发生器pCAPL节点 2007. HiRain Technologies. All rights reserved.Slide: 40CANoe窗口介绍(窗口介绍(8)p发生器模块 2007. HiRain Technologies. All rights reserved.Slide: 41CANoe窗口介绍(窗口介绍(8)p发生器模块 2007. HiRain Technologies. All rights reserved.Slide: 42CANoe窗口介绍(窗口介绍(8)p发生器模块 2007. HiRain Technologies. All right
19、s reserved.Slide: 43CANoe窗口介绍(窗口介绍(8)p交互式发生器模块 2007. HiRain Technologies. All rights reserved.Slide: 44欢迎进入欢迎进入CAPL的世界的世界pCAPL (CAN Access Programming Language )p类C语言p仿真p单个节点和整个网络p外部环境p测试p面向事件的编程语言p总线事件p键盘事件p时间事件 2007. HiRain Technologies. All rights reserved.Slide: 45CAPL Browser标题栏菜单条工具条浏览树窗格编译信息窗
20、格状态条全局变量编辑窗格CAPL程序编辑窗格 2007. HiRain Technologies. All rights reserved.Slide: 46CAPL事件事件系统事件PreStartCANoe初始化时执行on preStart Start测量开始时执行on start StopMeasuremet测量结束时执行on stopMeasurement CAN控制器事件BusOff硬件检测到BusOff时执行on busOff ErrorActive硬件检测到ErrorActive时执行on errorActive ErrorPassive硬件检测到ErrorPassive时执行on
21、 errorPassive WarningLimit硬件检测到WarningLimit时执行on warningLimit CAN消息事件自定义接收到指定的消息时执行on message Message 时间事件自定义定时时间朝过时执行on timer Timer 键盘事件自定义键值指定的键被下时执行on key Key 错误帧事件ErrorFrame硬件每次检测到错误帧时执行on errorFrame 环境变量事件自定义指定的环境变量值改变时执行on envVar EnvVar 2007. HiRain Technologies. All rights reserved.Slide: 47C
22、APL基本语法基本语法p类C语言,语法与C语言基本相同p注释p/放置在需要注释的语句之前,注释单行p/*注释起始符,其后的内容被注释p*/注释结束符,结束由/*开始的注释p分号程序结束标识p大括号函数体counter = counter+1;if (counter=256) counter=0; stop(); 2007. HiRain Technologies. All rights reserved.Slide: 48消息事件消息事件pon message 123 /对消息123(dec)反应pon message 0 x123 /对消息123(hex)反应pon message Moto
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CANoe 快速 入门
![提示](https://www.deliwenku.com/images/bang_tan.gif)
限制150内