当前位置:网站首页>Zero basic learning canoe panel (15) -- CAPL output view
Zero basic learning canoe panel (15) -- CAPL output view
2022-07-25 12:51:00 【Ant soldier】
- I am a Ant soldier , Focus on the field of on-board diagnosis , Especially good at CANoe Tool use
- Looking for organizations , Answer questions and solve doubts , Fishing and chatting , Blog source code , Click to add 【 Love each other and family 】
- Zero base learning CANoe Panel Summary of design catalogue , Click the jump
Preface
As explained earlier
Hex/Text EditorCan be used to output text to Panel On ; If all you need is LOG Output to Panel, There is no need to save to relevant Symbol, thatCAPL Output ViewMaybe it's a better choice for youDemonstrate hardware and software environment
Windows11 x64;CANoe 11 SP2 x64

Text output (CAPL Output View )
- 1️⃣ Place a CAPL Output View Control , The background color is set to black , The font is set to green ,OutPut Mode The default is Append

2️⃣ Control CAPL function
- putValueToControl : Write text to the control
- DeleteControlContent : Empty the control text


3️⃣ Code demonstration
- We may be in CAPL When performing test tasks in , Keep going to Panel Medium output test Log
/*@!Encoding:936*/
on key 'a'
{
char timeBuffer[64];
char tempText[256];
int i ;
getLocalTimeString(timeBuffer);
snprintf(tempText,elCount(tempText),"%s: Start executing tests ...\n",timeBuffer);
putValueToControl("ToolBox_CAPLOutView","CAPLOutputView",tempText);
getLocalTimeString(timeBuffer);
snprintf(tempText,elCount(tempText),"%s: Performing test steps (1)...\n",timeBuffer);
putValueToControl("ToolBox_CAPLOutView","CAPLOutputView",tempText);
getLocalTimeString(timeBuffer);
snprintf(tempText,elCount(tempText),"%s: End of test , result PASS\n",timeBuffer);
putValueToControl("ToolBox_CAPLOutView","CAPLOutputView",tempText);
}
3️⃣ Press down ‘a’ key , Output test Log


summary


- Have the most simple life , The furthest dream , Even if it's freezing tomorrow , Lu Yao's horse died !
- If this blog is helpful to you , please “ give the thumbs-up ” “ Comment on ”“ Collection ” One key, three links Oh ! It's not easy to code words , Everyone's support is my driving force to stick to it .
边栏推荐
- 【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
- ECCV2022 | TransGrasp类级别抓取姿态迁移
- 阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程?
- 【5】 Page and print settings
- Perf performance debugging
- Mysql 远程连接权限错误1045问题
- Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?
- Kyligence 入选 Gartner 2022 数据管理技术成熟度曲线报告
- Monit installation and use
- SSTI 模板注入漏洞总结之[BJDCTF2020]Cookie is so stable
猜你喜欢
Software testing interview question: Please list the testing methods of several items?

【Flutter -- 实例】案例一:基础组件 & 布局组件综合实例
![SSTI template injection vulnerability summary [bjdctf2020]cookie is so stable](/img/19/0b943019fe1c959c4b79035a814410.png)
SSTI template injection vulnerability summary [bjdctf2020]cookie is so stable

AtCoder Beginner Contest 261E // 按位思考 + dp

想要做好软件测试,可以先了解AST、SCA和渗透测试
![[shutter -- layout] stacked layout (stack and positioned)](/img/01/c588f75313580063cf32cc01677600.jpg)
[shutter -- layout] stacked layout (stack and positioned)

感动中国人物刘盛兰
软件测试流程包括哪些内容?测试方法有哪些?

More accurate and efficient segmentation of organs-at-risk in radiotherapy with Convolutional Neural

【OpenCV 例程 300篇】239. Harris 角点检测之精确定位(cornerSubPix)
随机推荐
perf 性能调试
CONDA common commands: install, update, create, activate, close, view, uninstall, delete, clean, rename, change source, problem
【高并发】通过源码深度分析线程池中Worker线程的执行流程
Deep learning MEMC framing paper list
想要白嫖正则大全是吧?这一次给你个够!
word样式和多级列表设置技巧(二)
Fiddler packet capturing app
【C语言进阶】动态内存管理
2022.07.24(LC_6125_相等行列对)
JS 中根据数组内元素的属性进行排序
flinkcdc可以一起导mongodb数据库中的多张表吗?
ECCV 2022 | 登顶SemanticKITTI!基于二维先验辅助的激光雷达点云语义分割
[机器学习] 实验笔记 – 表情识别(emotion recognition)
基于JEECG制作一个通用的级联字典选择控件-DictCascadeUniversal
Jenkins configuration pipeline
基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
Make a general cascade dictionary selection control based on jeecg -dictcascadeuniversal
Excuse me, using data integration to import data from PostgreSQL to MySQL database, emoj appears in some data fields
LeetCode 0133. 克隆图
2022河南萌新联赛第(三)场:河南大学 I - 旅行
