当前位置:网站首页>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 .
边栏推荐
- 请问一下,使用数据集成从postgreSQL导数据到Mysql数据库,有部分数据的字段中出现emoj
- 公安部:国际社会普遍认为中国是世界上最安全的国家之一
- 想要做好软件测试,可以先了解AST、SCA和渗透测试
- Detailed explanation of switch link aggregation [Huawei ENSP]
- Shell Basics (exit control, input and output, etc.)
- 零基础学习CANoe Panel(13)—— 滑条(TrackBar )
- 【Rust】引用和借用,字符串切片 (slice) 类型 (&str)——Rust语言基础12
- 【AI4Code】《Contrastive Code Representation Learning》 (EMNLP 2021)
- Can flinkcdc import multiple tables in mongodb database together?
- [problem solving] ibatis.binding BindingException: Type interface xxDao is not known to the MapperRegistry.
猜你喜欢

Selenium use -- installation and testing

Use of hystrix

LeetCode 0133. 克隆图

cmake 学习使用笔记(二)库的生成与使用

Crawler crawls dynamic website
![[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12](/img/48/7a1777b735312f29d3a4016a14598c.png)
[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12

A turbulent life

Pytorch project practice - fashionmnist fashion classification

Fiddler packet capturing app

What is ci/cd?
随机推荐
JS 将伪数组转换成数组
【8】 Clever use of color finder
公安部:国际社会普遍认为中国是世界上最安全的国家之一
485通讯( 详解 )
零基础学习CANoe Panel(15)—— 文本输出(CAPL Output View )
Interviewer: "classmate, have you ever done a real landing project?"
【Flutter -- 布局】层叠布局(Stack和Positioned)
Table partition of MySQL
perf 性能调试
Selenium uses -- XPath and analog input and analog click collaboration
LeetCode 1184. 公交站间的距离
【运维、实施精品】月薪10k+的技术岗位面试技巧
【问题解决】ibatis.binding.BindingException: Type interface xxDao is not known to the MapperRegistry.
软件测试面试题目:请你列举几个物品的测试方法怎么说?
Use of hystrix
Use vsftpd service to transfer files (anonymous user authentication, local user authentication, virtual user authentication)
ECCV2022 | TransGrasp类级别抓取姿态迁移
Crawler crawls dynamic website
Pytorch project practice - fashionmnist fashion classification
More accurate and efficient segmentation of organs-at-risk in radiotherapy with Convolutional Neural
