CAPL Scripting Quickstart

Similar documents
Unit Testing with VectorCAST and AUTOSAR

CANoe/CANalyzer New Features

Overview of Security Support in Vector Tools

EMC ViPR. User Guide. Version

CANoe/CANalyzer. Tools for comprehensive CAN Network Analysis and Test - An Overview V

Making Full Use of Multi-Core ECUs with AUTOSAR Basic Software Distribution

AUTOSAR System and Software Design with PREEvision

Bits, Bytes, and Integers. Bits, Bytes, and Integers. The Decimal System and Bases. Everything is bits. Converting from Decimal to Binary

CS 153 Design of Operating Systems

What s New in AppSense Management Suite Version 7.0?

webinar series

Vector Logger Cloud. VECTOR GB Ltd Conference, 28th Sept, 2017 V

Illumina LIMS. Software Guide. For Research Use Only. Not for use in diagnostic procedures. Document # June 2017 ILLUMINA PROPRIETARY

Diagnostics is evolving

L EGAL NOTICES. ScanSoft, Inc. 9 Centennial Drive Peabody, MA 01960, United States of America

Local Run Manager Generate FASTQ Analysis Module

POWER-OF-2 BOUNDARIES

EMC VNX Series. Problem Resolution Roadmap for VNX with ESRS for VNX and Connect Home. Version VNX1, VNX2 P/N REV. 03

Computer User s Guide 4.0

Master for Co-Simulation Using FMI

Isilon InsightIQ. Version 2.5. User Guide

EXAMINATIONS 2003 END-YEAR COMP 203. Computer Organisation

Enabling Connectivity with Service Oriented Architectures

CS 153 Design of Operating Systems Spring 18

dss-ip Manual digitalstrom Server-IP Operation & Settings

EMC AppSync. User Guide. Version REV 01

Requirements Engineering. Objectives. System requirements. Types of requirements. FAQS about requirements. Requirements problems

EMC M&R (Watch4net ) Installation and Configuration Guide. Version 6.4 P/N REV 02

Local Run Manager. Software Reference Guide for MiSeqDx

Lecture 7. Building A Simple Processor

COPYRIGHTED MATERIAL. Recording Macros and Getting Started with VBA. Part 1

Content Content Introduction

Networks An introduction to microcomputer networking concepts

Tdb: A Source-level Debugger for Dynamically Translated Programs

CS 153 Design of Operating Systems Spring 18

Inscribe User s Guide

METAMODEL FOR SOFTWARE SOLUTIONS IN COMPUTED TOMOGRAPHY

Nortel DECT Handset 4025 User Guide

Functions of Combinational Logic

The single-cycle design from last time

Hardware Design Tips. Outline

DSCS6020: SQLite and RSQLite

(2, 4) Tree Example (2, 4) Tree: Insertion

CS 153 Design of Operating Systems Spring 18

Doctor Web. All rights reserved

webinar series

Ma Lesson 18 Section 1.7

Lecture 13: Exceptions and Interrupts

Access Professional Edition 2.1

EMC NetWorker Module for SAP

EXAMINATIONS 2010 END OF YEAR NWEN 242 COMPUTER ORGANIZATION

CS 153 Design of Operating Systems Spring 18

Introduction. Following are the types of operators: Unary requires a single operand Binary requires two operands Ternary requires three operands

Multi-lingual Multi-media Information Retrieval System

An Introduction to GPU Computing. Aaron Coutino MFCF

Lab 8 (All Sections) Prelab: ALU and ALU Control

Real-time mean-shift based tracker for thermal vision systems

The extra single-cycle adders

NEAR EAST UNIVERSITY. Faculty of Engineering

DI-80. When Accuracy Counts

Putting the dynamic into software security testing

Dr Paolo Guagliardo. Fall 2018

The best decision leaves you options

MiniSeq. System Guide. For Research Use Only. Not for use in diagnostic procedures. Document # v02 Material # March 2018

Review. A single-cycle MIPS processor

Today: Bits, Bytes, and Integers. Bits, Bytes, and Integers. For example, can count in binary. Everything is bits. Encoding Byte Values

AUTOSAR Diagnostic Extract

LDAP Configuration Guide

Pipelined van Emde Boas Tree: Algorithms, Analysis, and Applications

Page # CISC360. Integers Sep 11, Encoding Integers Unsigned. Encoding Example (Cont.) Topics. Twoʼs Complement. Sign Bit

Resolving Linkage Anomalies in Extracted Software System Models

Bits, Bytes, and Integer

Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators. JAVA Standard Edition

BIS - Basic Package V4.4

NextSeq 550. System Guide. For Research Use Only. Not for use in diagnostic procedures. Document # v04 May 2018 ILLUMINA PROPRIETARY

BIS - Basic package V4.3

Winter 2013 MIDTERM TEST #2 Wednesday, March 20 7:00pm to 8:15pm. Please do not write your U of C ID number on this cover page.

Features. ICMS Integrated Corrosion Management System

Prof. Kozyrakis. 1. (10 points) Consider the following fragment of Java code:

Ellucian ODS9.0 Upgrade Migrating from OWB to ODI. Amir Saleem Centennial College May 17, 2017

4.13 Advanced Topic: An Introduction to Digital Design Using a Hardware Design Language 345.e1

BIS - Basic Package V4.6

Image Compression Compression Fundamentals

REPLICATION IN BANDWIDTH-SYMMETRIC BITTORRENT NETWORKS. M. Meulpolder, D.H.J. Epema, H.J. Sips

About This Manual Copyright Copyright 2017 ZTE CORPORATION All rights reserved. Notice Disclaimer

Local Run Manager RNA Fusion

CAN FD. An Introduction V

BIS - Basic package V4.2

DVR 630/650 Series. Video DVR 630/650 Series. 8/16-Channel real-time recording with CIF resolution. Flexible viewing with two monitor outputs

Garnet2.0: A Detailed On-Chip Network Model Inside a Full-System Simulator

Clustering and Clustering

IMPLEMENTATION OF OBJECT ORIENTED APPROACH TO MODIFIED ANT ALGORITHM FOR TASK SCHEDULING IN GRID COMPUTING

AUTOSAR Diagnostic Extract

AAA CENTER FOR DRIVING SAFETY & TECHNOLOGY

HP 9000 Series 300 Computers. Using and Administering NFS Services

VRM Video Recording Manager

5 Performance Evaluation

CS 153 Design of Operating Systems

Gigaset M34 USB Ya-LBA / englisch / A31008-M403-R / cover_front.fm / User Manual

Analog Telephones. User Guide. BusinessPhone Communication Platform

Transcription:

CAPL Scripting Qickstart CAPL (Commnication Access Programming Langage) For CANalyzer and CANoe V1.01 2015-12-03

Agenda Important information before getting started 3 Visal Seqencer (GUI based programming (Sbset of CAPL)) 7 Brief Introdction to CAPL 11 Notes on Panel creation and se 24 Where to find additional information 28 Contact Information 30 2

Important information before getting started CANalyzer verss CANoe CANalyzer is wholly contained within CANoe CANoe Simlation Test Diagnostics CANalyzer Analysis Ethernet MOST FlexRay LIN CAN CANoe offers significant additional capability beyond CANalyzer to: > Stimlate the network(s) with Interaction Layer knowledge > Rn atomated tests and generate test reports > Implement atomated diagnostic tests 3

Important information before getting started CANoe and the added vale of the Interaction Layer The CANoe Interaction Layer (in short CANoeIL): > Provides a signal-oriented means of accessing the bs > Map signals to their appropriate send messages > Controls the sending of these messages as a fnction of the (OEM) Send Model Transmission of messages and signals is described based on attribtes in the database CANoeIL models the transmission behavior at rn-time sing those attribtes 4

Important information before getting started Overview of CANalyzer variants CAPL is available in CANalyzer PRO and all versions of CANoe CANalyzer is available in three different variants: PRO: Professional variant: fll fnctionality EXP: Expert variant: spports all applications p to complex analysis of heterogeneos systems; does not spport CAPL programs FUN: Fndamental variant: simple applications, does not spport CAPL, diagnostic tester and panels Detailed information abot the variants of CANalyzer is available at or website: http://www.vector.com/vi_canalyzer_variants_en.html 5

Agenda Important information before getting started 3 Visal Seqencer (GUI based programming (Sbset of CAPL)) 7 Brief Introdction to CAPL 11 Notes on Panel creation and se 24 Where to find additional information 28 Contact Information 30 6

Visal Seqencer (GUI based programming (Sbset of CAPL)) General Available in both CANalyzer PRO and EXP > Intended to allow some atomation within the EXP variant The Visal Seqencer allows yo to create atomated command seqences with the prpose of > Stimlating the network > Controlling applications In order to strctre the individal steps, loops and conditional command blocks can be sed, sch as > if, else if, end if Each seqence is shown in a separate window, and can be edited at any time, even while a measrement is rnning. 7

Visal Seqencer (GUI based programming (Sbset of CAPL)) Featres Send messages (cyclically) Set signals/variables If, else, else if and repeat commands Wait commands Start/stop replay Write text or vales to write window or file Graphical debg Ato complete for names 8

Visal Seqencer (GUI based programming (Sbset of CAPL)) See the CANsystemdemo.cfg inclded with yor installation 9

Agenda Important information before getting started 3 Visal Seqencer (GUI based programming (Sbset of CAPL)) 7 Brief Introdction to CAPL 11 Notes on Panel creation and se 24 Where to find additional information 28 Contact Information 30 10

Brief Introdction to CAPL General Fnctional blocks based on CAPL (Commnication Access Programming Langage) can be created to program Network node modles Special evalation programs for individal applications Some CAPL characteristics: C-like programming langage Event based, not interrpt driven CAPL programs are created sing an integrated development environment called the CAPL Browser Direct access to signals, system variables and diagnostic parameters Able to link ser created DLLs 11

Brief Introdction to CAPL Field of Application CANoe Creating and extending simlations Implementing fnctions for analysis in the measrement setp Simlation Setp Measrement Setp 12

Brief Introdction to CAPL Field of Application CANalyzer Creating simlations or reactive scripts Implementing fnctions for analysis in the measrement setp Send Loop of the Measrement Setp Analysis Branches 13

Brief Introdction to CAPL CAPL Browser 14

Brief Introdction to CAPL Compiling In order to generate an exectable program file from a CAPL program, the program mst be compiled with the CAPL compiler: Error messages are shown in the lower Message Window: When yo doble-click the error description, the crsor in the Text Editor atomatically jmps to the point in the sorce code, where the error originated. 15

Brief Introdction to CAPL Examining a CAPL program Additional CAPL files that contain generic code that can be resed in other programs Variables defined here are accessible throghot the CAPL program Mltiple pre-defined event handlers exist for yor se within CAPL. The code in this handler will only be exected when the event occrs. Yo can create yor own fnctions (special handler) that contain related code to be exected freqently 16

Brief Introdction to CAPL Adding an Event Handler CAPL is a procedral langage in which the exection of program blocks is controlled by events. These program blocks are referred to as event procedres. 17

Brief Introdction to CAPL Important Event Handlers Start of measrement on Start { write ("Start of CANoe"); } Message received on message 0x123 { write ("CAN Message 123"); } Signal change on signal sigtemp { write ("Signal Temperatre"); } Time event on timer tmrcycle { write ("within cycle"); } Key press on key 'a' { write ("Key >a< pressed"); } 18

Brief Introdction to CAPL On Key Procedres on key 'a' on key ' ' on key 0x20 on key F1 on key ctrlf12 on key PageUp on key Home on key * // React to press of a key // React to press of spacebar // React to press of spacebar // React to press of F1 key // React to press of Ctrl-F12 // React to press of Page Up key // React to press of Home key // React to any key press except 19

Brief Introdction to CAPL Data types for CAN Type Name Bit Note Integers Signed Unsigned int long int64 byte word dword qword 16 32 64 8 16 32 64 Floating point float doble 64 64 Per IEEE Per IEEE Single character char 8 Message variable for CAN message for CAN messages Time variables for seconds timer for Timer in s for milliseconds mstimer for Timer in ms 20

Brief Introdction to CAPL Variables in CAPL CAPL code: int i = 100; char ch = 'a'; float x; // Declaration and initialization of an integer // Declaration and initialization of a character // Declaration of a floating point nmber write ("Hndred as decimal nmber: %d", i); write ("Hndred as hexadecimal nmber: %x", i); write ("Pi as floating point nmber: %f", pi); write ("The decimal ASCII code of %c is %d", ch, ch); write ("The vale of x is %f", x); Reslts: 21

Brief Introdction to CAPL Operators Operator Description Example + - Addition, sbtraction - * / Mltiplication, division - ++ -- Increment or decrement by 1 a++; // increments a by 1 % Modlo division (retrns integer remainder of a division) a = 4 % 3; // a is 1 < <= Less than; less than or eqal to retrns TRUE or FALSE > >= Greater than; greater than or eqal to retrns TRUE or FALSE ==!= Compare for eqality or ineqality retrns TRUE or FALSE && Logic AND retrns TRUE or FALSE Logic OR retrns TRUE or FALSE! Logic NOT changes TRUE to FALSE and vice versa & Bitwise AND 1 & 7 // yields 1 (0001 & 0111 0001) Bitwise OR 1 7 // yields 7 (0001 0111 0111) ~ Bitwise complement ~1 // yields 14 (0001 1110) ^ Bitwise exclsive OR (XOR) 01^11 // ergibt 10 >> << Bit shift to right or left 1 << 3 // yields 8 (0001 1000) 22

Agenda Important information before getting started 3 Visal Seqencer (GUI based programming (Sbset of CAPL)) 7 Brief Introdction to CAPL 11 Notes on Panel creation and se 24 Where to find additional information 28 Contact Information 30 23

Notes on Panel creation and se Creating a Panel A signal is mapped to each display or control: Drag & Drop 24

Notes on Panel creation and se Creating a System Variable for se with in a configration Signals can be atomatically or ser created, saved, exported, and imported via the Configration Systems Variables dialog: 25

Agenda Important information before getting started 3 Visal Seqencer (GUI based programming (Sbset of CAPL)) 7 Brief Introdction to CAPL 11 Notes on Panel creation and se 24 Where to find additional information 28 Contact Information 30 26

Agenda Important information before getting started 3 Visal Seqencer (GUI based programming (Sbset of CAPL)) 7 Brief Introdction to CAPL 11 Notes on Panel creation and se 24 Where to find additional information 28 Contact Information 30 27

Where to find additional information Online Help file: Use Index CAPL Introdction 28

Agenda Important information before getting started 3 Visal Seqencer (GUI based programming (Sbset of CAPL)) 7 Brief Introdction to CAPL 11 Notes on Panel creation and se 24 Where to find additional information 28 Contact Information 30 29

Contact Information Looking for more information? Visit or website: > http://www.vector.com Sign in for a Vector training class: > http://www.vector.com/vi_training_en.html Need help with Vector tools? Contact or spport team: > (248) 449 9290 Option 2 > spport@s.vector.com 30