在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → CAPL编程介绍与范例

CAPL编程介绍与范例

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:2.84M
  • 下载次数:38
  • 浏览次数:904
  • 发布时间:2020-08-27
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
汽车行业 软件CANoe 应学之CAPL编程
CAPL Function Reference manual November 23. 2004 Second printing vector le art of engineering Vector cantech. Inc Suite 550 39500 Orchard hill place Novi. mi 48375 USA http://www.vector-cantech.com Preface c 20042005 Vector cantech Inc Novi, Michigan 48375 USA The authors and publishers have used their best efforts in preparing this book. These efforts include development, research, and testing of the theories, principles, and programming sample code so as to determine their effectiveness. The authors and/or publishers make no warranty, expressed or implied, with regard to the sample code or to any other documentation contained in this book. the authors and/or publishers shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of the sample code or any of the contents of this book All rights reserved No part of this book may be reproduced, in any form or by any means, without express permission in writing from Vector CANtech, Inc 2 P1 reface Table of contents CAPL Function reference manual Table of contents Preface∴ About this book Organization Acknowledgments… aaa:aa:aa:aaa:aaaaaaa:aa:aaaaaa.a:aa:a.aa:aa::a:a.:aa:aa Tell Us what You think Guide to the use of this book The Main entry function :_a:日a: nn 000日日aa:a日aa日 Obsolete 7789999 Syntax Description .9 Parameter 9 Returns.… 日日1日1口m Availability…… n:aaaaaaaaa:aaa:aaaaaaa:a:a:aa:aaaaaaaa.a:aa:aaaaaaaa 10 Observation 10 Recommendatio∩ 10 Branch compatibility∴ 10 Related functions∴11 Example 重, 11 The caPl functions 12 abs 13 atol a:aaa..:a“:aa: IB....a日:日日:a日. .....:a.aaa:aa: B..B:a::a d800 14 beep......... 15 caA) Dn Eny∨ar.….…………………………16 cancelTimer 17 canoffline 1面 18 can Online aa:.::日aaaa .19 can SetchannelAcc ■口1重 .20 can SetchannelMode ““ can Set channeloutput ⊥:::日..日日.日:日日a:a日 22 23 aCOunt 24 enable control 重1面1重1重日口日1日自日日111重面 25 exp 26 file close 27 file GetBinary block aa.a:a::aa:aaa..::a:.a:aaaaaaaaaaaa:aBaaaa( 28 file Getstring 29 file Getstring SZ…31 file Name aaa“aa:aa:a:a II.... 33 filePutString “:“““·=·“·“·““““ 34 filereadarra 35 file ReadFlea aa.aa:aaaaaaaaaa:日a:aaa 37 FileReadlnt 38 3 P1 reface File Readstring……… 39 file rewind..….…..….…….…………………………41 file Write Binary Block 42 filelrite leat 44 fieriⅰtent …45 filewrite striAe 46 getBus Context 47 getBusName Context 48 getCardT ype 49 getCardTypeEx............ 50 getchipType ∴52 getDrift 53 getFirstCANdbName 54 getJitterMax………,…,…,…,…,…,…,…,…,……,…………5 getJitter Min…… 56 getLocalT ime 57 getLocalT imeString 58 getMessage AttrInt 59 getMessageName 60 getNextCANdbName 61 getProFile Array...................62 getProFileFloat 64 getProFilelnt 66 getProFile String…… 68 getStartdelay….…….…….…….…….….…..….….….….…….70 getvalu getValue Size a:aa::.a.aa:aa:aa.aa:aaa:a.日aaa.a::aaaa日.日日: IIIB: ...-日:a日:aa. B..B.a:aa:aa 72 halt 73 inport 74 inportLPT 75 inspect…….…..… 76 isExtld 77 is StatisticAcquisition Running 78 s stdld 79 keypressed 80 Itoa aasaa:aa:aa:a日:aaaaaaaaa:aa:a 81 makeRGB 82 mkExtld 83 msgBeep open FileRead ........=“=.= 85 open FileWrite........................................86 outdo 87 outportLPT .88 output a.a日.a日: BB...日 nnL 89 putvalue............... a.aa: in日aa日a:a“ BB.Ba日aa:aa1aaa 90 putvalue ToContre 91 Preface randon.… 92 replayresume.….….,.…,……,…,…,…,…,………93 replay Start 94 replay State................. 95 replay Stop...,.….,.,.….,…,………96 replay Suspend 97 resetcan 98 resetcanEX 99 runError 100 deFile close n0000000000I 101 seqFileGetBlock 102 seeFile GetLine 103 deFile GetLineSZ 104 seqFiletead ..I...8. 105 eeFilerewind 106 setBtr∴…107 setBus Context aa:a:aaaa:aaaaaaaa:aa::aaaa..:aa:aa:aaaaaa 108 setcan CabsMode 109 setcontrolbAckcolor,wwww.110 setControlFore Color 111 setControlProperty :aa:#:日.日:a.:::日“.:a: 112 setDrift 重D, 113 setFilePath 114 setjitter 15 setLog FileName 16 tMsg Time 17 setocr a:aa:a:日.: I..-.aa:aa: a-..日aa.aa:aa:a 118 setPortBits 119 setPostTrigger 着,. 121 setPre Trigger… a:a._:aa.aa..:aa:aauaaaa日a:::.a 122 setstartDelay .123 setTimer 124 setWrite DbgLevel 125 setwrite Path I 126 SIn ……127 snprintf .128 sart .129 startlogging…… 130 startstatisticAcquisition 131 Stop.……… 132 stopLogging 133 stop StatisticAcquisition 重1面 134 strlen ..135 strncat 136 strncmp………..….…..….….…..….……………37 cpy 138 5 P1 reface swap dWord 139 swapInt..……………140 swapLong 重1重口重重 1441 swapWord 142 sysEXit.…143 sysMinimize .144 time Diff 日重1日口 145 timenow aaa:a::aa.aa:a::aa:.:aa:aaaaa.a.a:a:a:aaa:aa.aa:a:aaaaaaa:aa:aaa 146 timeNow Float 147 gger∴…………………………… 重1重 148 valoid 149 write 150 write Clear 151 write Create 152 write DbgLevel 153 write Destroy aaaaaaaaaa:aa:aa:aa:aaaaBaaaaaaaaa:aaaaaaa:a:aaa:aaaaaaaaaaaa:aa:aaaaaaaaaa:a1 重1■ 154 write Ex 155 writeline Ex… aa“aa 重m 156 write ProFile float 157 write ProFile lnt 158 write ProFile String ...............................................................................159 write T extBkg Color∴….….….….….….….….….…..….….….….......160 write Textcolor 161 write I OLog…… 162 write TOLOgEX 164 Compatibility chart 166 Availability Chart..… 170 6 P reface Preface The CAPL Functions Reference Manual presents a complete description of all 150 functions of the vector CAN Application Programming Language(CAPL), the programming language foundation of vector CaNoe and canalyzer- two of vectors most popular development tools. CAPL is a rich robust tool used to extend the power of canoe and canalyzer beyond the tool's interfaces and to customize tool functionality to the users requirements About this book This book assumes that the programming experience level of the user includes individuals with some experience in the C programming language, in addition to those with C coding experience, who wish to use this as a reference book to CAPL functions This material is suitable for college programs that focus on electrical engineering computer engineering, computer science, distributed control systems and distributed embedded systems that use the Can protocol. The target audience is engineering students, faculty, practicing engineers, and electronic technicians Organization This book is organized into two major sections. The second section, the main section consists of approximately one page devoted to every function in the CaPl programming language. It includes the syntax of the function, a description, any parameters, any value returned by the function compatibility references to related functions and a code example of how the function is used ina CAPL program. The first section explains these sections in more detail Acknowledgments The original creator of CAPL is Dr Helmut Schelling, who also developed and authored the first compiler and first editor for the CAPL pl rogramming language Jurgen Kluser incorporated the data structural elements of the CAPL programming language into the Vector CANdb database tool. Additionally, those who participated in continuing the development of the CAPL programming language equally deserve credit, and these individuals include Thomas Riegraf and the Canoe/CANalyzer development teams On the authoring side it is important to recognize several individuals who have made significant contributions to this book, including Jun Lin, Tom Guthrie, and Mike Alexander P reface Tell us what You think! We believe that you, the reader, are the most important person of all, since it is you who will benefit from reading this book We value your input, and we would like to know what were doing right, what we could do better, what things you think are important that we havent covered, and any other comments you might have You can fax, e-mail or write us directly to let us know what you did or didn t like about this book -as well as what we can do to make our books better When you write, please include the title of this book, as well as your name and phone or fax number. We will carefully review your comments and share them with the authors and editors Who worked on the book E-mail:CaplBooks@vector-cantech.com Address: 39500 Orchard Hill Place novi. MI USA 48375 Fax:248-449-9704 8 【实例截图】
【核心代码】

标签:

实例下载地址

CAPL编程介绍与范例

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

第 1 楼 vector123 发表于: 2022-10-15 16:19 45
英文版的,坑

支持(0) 盖楼(回复)

第 2 楼 vector123 发表于: 2022-10-15 16:19 48
英文版的,坑

支持(0) 盖楼(回复)

发表评论

(您的评论需要经过审核才能显示)

查看所有2条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警