CAPLQuickstart Generic 2018 Final
CAPLQuickstart Generic 2018 Final
V1.01 | 2015-12-03
Agenda
2
Important information before getting started
CANalyzer versus CANoe
CANalyzer is wholly contained within CANoe
CANoe
Simulation Test
Diagnostics CANalyzer
Analysis
Ethernet
MOST
FlexRay
LIN
CAN
CANoe offers significant additional capability beyond CANalyzer to:
> Stimulate the network(s) with Interaction Layer knowledge
> Run automated tests and generate test reports
> Implement automated diagnostic tests
3
Important information before getting started
CANoe and the added value of the Interaction Layer
5
Agenda
6
Visual Sequencer (GUI based programming (Subset of CAPL))
General
7
Visual Sequencer (GUI based programming (Subset of CAPL))
Features
8
Visual Sequencer (GUI based programming (Subset of CAPL))
See the CANsystemdemo.cfg included with your installation
9
Agenda
10
Brief Introduction to CAPL
General
11
Brief Introduction to CAPL
Field of Application CANoe
12
Brief Introduction to CAPL
Field of Application CANalyzer
13
Brief Introduction to CAPL
CAPL Browser
14
Brief Introduction to CAPL
Compiling
When you double-click the error description, the cursor in the Text
Editor automatically jumps to the point in the source code, where the
error originated.
15
Brief Introduction to CAPL
Examining a CAPL program
16
Brief Introduction to CAPL
Adding an Event Handler
17
Brief Introduction to CAPL
Important Event Handlers
on Start
{
u Start of measurement write ("Start of CANoe");
}
on message 0x123
{
u Message received write ("CAN Message 123");
}
on signal sigTemp
u Signal change {
write ("Signal Temperature");
}
on timer tmrCycle
u Time event {
write ("within cycle");
}
on key 'a'
u Key press {
write ("Key >a< pressed");
}
18
Brief Introduction to CAPL
On Key Procedures
19
Brief Introduction to CAPL
Data types for CAN
20
Brief Introduction to CAPL
Variables in CAPL
u CAPL code:
int i = 100; // Declaration and initialization of an integer
char ch = 'a'; // Declaration and initialization of a character
float x; // Declaration of a floating point number
u Results:
21
Brief Introduction to CAPL
Operators
* / Multiplication, division -
> >= Greater than; greater than or equal to returns TRUE or FALSE
>> << Bit shift to right or left 1 << 3 // yields 8 (0001 1000)
22
Agenda
23
Notes on Panel creation and use
Creating a Panel
24
Notes on Panel creation and use
Creating a System Variable for use with in a configuration
Signals can be automatically or user created, saved, exported, and
imported via the Configuration|Systems Variables dialog:
25
Agenda
26
Agenda
27
Where to find additional information
Online Help file: Use Index|CAPL Introduction
28
Agenda
29
Contact Information
Looking for more information?
30