Programming with CAPL

Total Page:16

File Type:pdf, Size:1020Kb

Programming with CAPL Programming with CAPL CANalyzer CANoe the art of engineering Programming With CAPL December 14, 2004 First printing Vector CANtech, Inc. Suite 550 39500 Orchard Hill Place Novi, MI 48375 USA http://www.vector-cantech.com II © 2004, 2005 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. Table of Contents III Preface..............................................................................................................................................................................IX About This Book ............................................................................................................................................................IX Organization ..................................................................................................................................................................IX Acknowledgments .........................................................................................................................................................IX Tell Us What You Think!.................................................................................................................................................X 1 Introduction to CAPL................................................................................................................................................... 1 1.1 Evaluation Capability........................................................................................................................................... 1 1.2 Simulation Capability........................................................................................................................................... 1 1.3 Prerequisites for Using CAPL.............................................................................................................................. 2 1.4 Learning Steps .................................................................................................................................................... 2 1.5 CAPL – Event-Driven Software ........................................................................................................................... 3 1.6 CAPL Program Organization............................................................................................................................... 3 1.7 Using the CAPL Browser for Program Development .......................................................................................... 3 1.8 Program Development Uses the Database Tool – CANdb++............................................................................. 3 1.9 CAPL Programming Knowledge.......................................................................................................................... 4 1.10 CAN Communication Knowledge .................................................................................................................... 4 1.11 THE WARNING – Welcome to the Jungle....................................................................................................... 4 1.12 Responsibility................................................................................................................................................... 5 2 CANalyzer and CANoe............................................................................................................................................... 6 2.1 One Key Difference – Level of Node Control ...................................................................................................... 6 2.2 Graphic Panels – The Other Major Difference .................................................................................................... 7 3 A Brief Introduction to CANalyzer............................................................................................................................... 9 3.1 Value of the Downloadable Demo....................................................................................................................... 9 3.2 First-Time Considerations ................................................................................................................................... 9 3.3 How to Start and Stop CANalyzer ..................................................................................................................... 10 3.4 The Architecture of CANalyzer.......................................................................................................................... 10 3.5 Measurement Setup Window ............................................................................................................................ 12 3.5.1 Trace Window ............................................................................................................................................ 12 3.5.2 Statistics Window ....................................................................................................................................... 12 3.5.3 Bus Statistics Window................................................................................................................................ 13 3.5.4 Data Window.............................................................................................................................................. 13 3.5.5 Graphics Window ....................................................................................................................................... 13 3.5.6 Write Window ............................................................................................................................................. 13 3.6 Duplicating Analysis Blocks............................................................................................................................... 13 3.7 Controlling Data Flow ........................................................................................................................................ 13 3.8 Function Blocks ................................................................................................................................................. 13 3.8.1 Filtering Blocks........................................................................................................................................... 14 3.8.2 Message Blocks ......................................................................................................................................... 15 3.9 Using CAPL Program Blocks in CANalyzer ...................................................................................................... 17 3.9.1 CANalyzer Program Blocks for Transmission............................................................................................ 18 3.9.2 Program Blocks for Analysis ...................................................................................................................... 19 3.10 CANalyzer – CAPL Programming Environment ............................................................................................ 20 4 A Brief Introduction to CANoe .................................................................................................................................. 21 4.1 Value of the Downloadable Demo..................................................................................................................... 21 4.2 First-Time Considerations ................................................................................................................................. 21 4.3 Learning from the Demo.................................................................................................................................... 22 4.4 Tool Architecture of CANoe............................................................................................................................... 23 4.5 Using CAPL Program Blocks in CANoe............................................................................................................ 24 4.5.1 CANoe Program Blocks for Simulation ...................................................................................................... 24 4.5.2 CANoe Program Blocks for Analysis.......................................................................................................... 25 4.6 CANoe – CAPL Programming Environment ..................................................................................................... 25 5 Using Databases with CAPL .................................................................................................................................... 26 5.1 Why Use a Database with CAPL?..................................................................................................................... 26 5.1.1 Additional Uses of the Database...............................................................................................................
Recommended publications
  • Proof Your Canopen Products – Conformance and Interoperability
    December 2012 B 25361 CAN Newsletter Hardware + Software + Tools + Engineering Proof your CANopen products – conformance and interoperability Testing Easy access to CAN network analysis Isobus testing with implement and remaining bus simulation www.can-newsletter.org Solutions for open networks from one source Open CAN-based protocols are the basis of networking in com- mercial vehicles, avionics and industrial control technology. Vector supports you in all development phases of these systems: > Systematic network design with CANoe, ProCANopen and CANeds > Successful implementation with source code for CANopen, J1939 and more > Efficient configuration, test and extensive analysis with ProCANopen, CANoe and CANalyzer Multifaceted trainings and individual consulting complete our extensive offerings. Thanks to the close interlocking of the Vector tools and the competent support, you will increase the efficiency of your entire development process from design to testing. Further information, application notes and demos: www.vector.com/opennetworks AFDX® is an Airbus‘ registered trademark Vector Informatik GmbH Proof your CANopen products – conformance and interoperability Holger Zeltwanger Author Holger Zeltwanger CAN in Automation e. V. Managing Director [email protected] Definitions Compatibility: Capability to exist or perform in harmonious, agreeable, or congenial combination with others. Conformance: Compliance in actions, behavior, etc., with certain accepted stan- dards or specifications. Compliancy: A disposition or tendency to yield to the will of Figure 1: Current CANopen Conformance Test (CCT) tool others. he bell rings. The ap- CAN bit-rates of the tool and nor corrections of the EDS, Ilnteroperability: Tprentice opens the door the devices to 250 kbit/s, he links it to the test tool The ability of systems or of the CiA office.
    [Show full text]
  • Product Information Canbedded
    CANbedded Product Information CANbedded Table of Contents 1 Solutions with CANb edded ..................................................................................................................................................... 4 1.1 CANbedded ................................................................................................................................................................................ 4 1.2 Advantages of CANbedded ...................................................................................................................................................... 4 1.3 Your Partner Right From the Start ......................................................................................................................................... 4 1.4 Uniform Solution ....................................................................................................................................................................... 4 2 CANbedded - Basic Software for CAN Communication ....................................................................................................... 4 2.1 Overview of Advantages: ......................................................................................................................................................... 5 2.2 Application Areas ...................................................................................................................................................................... 5 2.3 Functions...................................................................................................................................................................................
    [Show full text]
  • Caneasyvsvector.Pdf
    Number of channels and supported bus systems CanEasy CANalyzer CANoe Number of configurable CAN channels 99 32 32 Number of configurable LIN channels 99 64 64 Number of configurable MOST channels 16 16 Number of configurable FlexRay channels (clusters) 32 32 Number of configurable Ethernet channels 99 32 32 Number of configurable K-Line channels 32 32 DBC databases (A429, AFDX®, CAN, CAN FD, CANaero, CANopen, ISO11783, J1708/J1587, J1939) LDF databases (LIN) AUTOSAR System Descriptions (CAN, Ethernet, FlexRay) DBC file editor LIN file editor (text based) LDF Explorer (LIN) Display of AUTOSAR files for CAN and FlexRay Supported hardware CanEasy CANalyzer CANoe Vector Intrepid Peak Softing Melevix Kvaser MHS IXXAT National Instruments Functions for bus analysis and monitoring CanEasy CANalyzer CANoe Central configuration of analysis windows and logging Reuse of measurement setups from other CANalyzer or CANoe configurations Trace Window: Detail, Difference and Statistics views for displaying the time flow of events Display bus statistics at the node or frame level (AFDX®, CAN, FlexRay, LIN) Display bus statistics on channel level Display bus statistics in histogram representation and statistics report (A429, CAN, FlexRay, ISO11783, J1939, LIN) Trigger: Control data logging (A429, AFDX®, CAN, FlexRay, ISO11783, J1939, LIN) Symbol mapping: Link system variables/environment variables/signals Momentary display of bus signals, environment and system variables Graphic display of signal responses
    [Show full text]
  • PDF Version 0
    December 2013 B 25361 CAN Newsletter Hardware + Software + Tools + Engineering Encoders make mobile elevating work platforms flexible Electric servo drives prove themselves in outdoor use Motion Motion control Walking excavator uses J1939-linked hydraulics www.can-newsletter.org Adding Connectivity to Your Design Microchip offers support for a variety of wired and wireless communication BEFORE YOUR NEXT WIRED protocols, including peripheral devices and solutions that are integrated with a PIC® Microcontroller (MCU) or dsPIC® Digital Signal Controller (DSC). OR WIRELESS DESIGN: 1. Download free software libraries Microchip’s Solutions include: 2. Find a low-cost development tool USB Wi-Fi® 3. Order samples 8-, 16- and 32-bit USB MCUs for basic, Innovative wireless chips and modules low-cost applications to complex and highly allowing a wide range of devices to connect www.microchip.com/usb integrated systems along with free license to the Internet. Embedded IEEE Std 802.11 www.microchip.com/ethernet software libraries including support for USB Wi-Fi transceiver modules and free TCP/IP www.microchip.com/can device, host, and On-The-Go. stacks. www.microchip.com/lin Ethernet ZigBee® www.microchip.com/wireless PIC MCUs with integrated 10/100 Ethernet Certified ZigBee Compliant Platform (ZCP) for MAC, standalone Ethernet controllers and EUI the ZigBee PRO, ZigBee RF4CE and ZigBee - 48™/EUI - 64™ enabled MAC address chips. 2006 protocol stacks. Microchip’s solutions CAN consist of transceiver products, PIC18, PIC24 8-, 16- and 32-bit MCUs and 16-bit DSCs with and PIC32 MCU and dsPIC DSC families, and integrated CAN, stand alone CAN controllers, certified firmware protocol stacks.
    [Show full text]
  • Canoe/Canalyzer Feature Matrix
    Testing Feature Matrix CANoe 15 SP3 and CANalyzer 15 SP3 CANoe/CANalyzer Variants at a Glance CANalyzer fun CANoe pex The fundamental variant is suitable for simple The project execution variant provides a graphical analysis, and it provides all interactive standard user interface exclusively. Simulation, test cases functions for this purpose. However, it does not and results are easily controlled without the need offer programmability, diagnostic functions or to specifically evaluate the underlying messages. user control panels. CANoe run CANalyzer exp The runtime variant is suitable for users who want The expert variant is ideal for all standard to quickly and easily test their ECU in interaction applications, and it provides all functions and with a specified remaining bus simulation. extensions without limitation. However, this Configurations cannot be changed, analysis variant does not support creating and executing functions are fully available and network nodes CAPL programs. can be easily connected and disconnected. CANalyzer pro CANoe pro The professional variant provides all functions and The professional variant is intended for users who extensions without limitations. It supports all use want to take advantage of the full range of CANoe cases from simple observation of the bus traffic functions. Simulation models can be created with to complex analysis, stimulation and testing of CAPL and .NET. Test cases are easy to model with heterogeneous systems. the Test Feature Set. CANoe/CANalyzer System Requirements Component Recommended Minimum CPU Intel Core i7 or comparable Intel compatible ≥ 3 GHz 2 GHz ≥ 4 cores 2 cores CANoe and CANalyzer benefit from higher clock rates rather than higher number of cores.
    [Show full text]