CAPL

My CAPL coding:

Please refer to my actual blog entries.

About CAPL:

Based on the C programming language, CAPL, or CAN Access Programming Language, is the programming language used exclusively within the PC-based tool environments of CANalyzer and CANoe.
The CANalyzer or CANoe tool itself, without CAPL programs, is enough to execute simple measurement and analysis of CAN bus systems.
With CAPL programs involved, measurement and analysis is greatly extended for CAN communication. One area that
the tool cannot perform without CAPL is analysis that involves timing. CAPL can make analysis more efficient with the
help of timers.

CAPL is an event-based procedural language that includes a large number of special-purpose functions to help the
distributed embedded system developer. CAPL software can be created to respond to the following:
• Time events (software timers)
• I/O events (keyboard, serial port, parallel port)
• CAN communication events (messages, errors)

To use CAPL effectively you need the following:
• A CANalyzer or CANoe tool – the programmable version is required
• An understanding of the CAPL Browser – where you write your CAPL program
• A database tool – CANdb++ – to create your shared network data variables
• A small amount of CAN communication knowledge
• CAPL / C programming knowledge

The CAPL programming language is based on C. The syntax, most standard functions, and some mathematical functions of ANSI C have all been
incorporated into CAPL, which extends the C foundation with extra network-specific functions and data types.

(mainly taken from Book ‚Programming with CAPL‘, Vector CANtech Inc., 2004 – see also First Aid section)