当前位置:网站首页>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 .
边栏推荐
- 零基础学习CANoe Panel(13)—— 滑条(TrackBar )
- 推荐系统-协同过滤在Spark中的实现
- Perf performance debugging
- 公安部:国际社会普遍认为中国是世界上最安全的国家之一
- Selenium uses -- XPath and analog input and analog click collaboration
- 【2】 Grid data display stretch ribbon (take DEM data as an example)
- MySQL implements inserting data from one table into another table
- 迁移PaloAlto HA高可用防火墙到Panorama
- Shell Basics (exit control, input and output, etc.)
- [advanced C language] dynamic memory management
猜你喜欢

卷积核越大性能越强?一文解读RepLKNet模型

Azure Devops(十四) 使用Azure的私有Nuget仓库

Azure Devops (XIV) use azure's private nuget warehouse

What is ci/cd?

Crawler crawls dynamic website

485 communication (detailed explanation)

If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing

2022.07.24 (lc_6124_the first letter that appears twice)

The first scratch crawler

跌荡的人生
随机推荐
需求规格说明书模板
迁移PaloAlto HA高可用防火墙到Panorama
推荐系统-协同过滤在Spark中的实现
Requirements specification template
ECCV2022 | TransGrasp类级别抓取姿态迁移
【10】 Scale bar addition and adjustment
零基础学习CANoe Panel(15)—— 文本输出(CAPL Output View )
Shell Basics (exit control, input and output, etc.)
Moving Chinese figure liushenglan
2022 年中回顾 | 大模型技术最新进展 澜舟科技
If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
[fluent -- example] case 1: comprehensive example of basic components and layout components
Use of hystrix
Want to go whoring in vain, right? Enough for you this time!
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
Ecological profile of pytorch
【Flutter -- 实例】案例一:基础组件 & 布局组件综合实例
2022.07.24(LC_6126_设计食物评分系统)
部署Apache网站服务以及访问控制的实现
公安部:国际社会普遍认为中国是世界上最安全的国家之一
