CANoe DENoe - KEMT FEI TUKE
CANoe DENoe - KEMT FEI TUKE
CANoe DENoe - KEMT FEI TUKE
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
155<br />
Therefore, you can utilize a CAPL program to develop monitoring and testing for your<br />
special problem task. The CAPL program reacts to messages that <strong>CANoe</strong> registers<br />
on the CAN bus, and afterwards you can call your own analysis and test functions.<br />
You can also use a CAPL program to emulate the system environment for a controller.<br />
The CAPL program reacts to both messages on the CAN bus and to your keyboard<br />
inputs, responding with certain CAN messages according to the event registered.<br />
It is entirely up to you to determine which actions are performed in response to<br />
which events.<br />
Another possible application of CAPL is to program a gateway - that is a connecting<br />
element between two buses - to exchange data between different CAN buses and<br />
moreover to correct erroneous data occurring in this exchange.<br />
Last but not least, the logging block can also be triggered by a CAPL program. Conditions<br />
of any desired complexity can be formulated for triggering. Triggering is initiated<br />
by a call of the intrinsic function trigger().<br />
6.1.2 Integration of CAPL Programs<br />
A CAPL program can be inserted in the measurement setup at all hotspots and also<br />
directly at the bus symbol in <strong>CANoe</strong>'s simulation setup. To do this, select the menu<br />
command Insert CAPL node from the hotspot's popup menu, and enter the name of<br />
the CAPL program file you wish to assign to this node in the configuration dialog. If<br />
you want to create a new CAPL program you can enter the name of a file that does<br />
not exist here yet. This file is then automatically created when editing.<br />
You open the CAPL Browser by pressing the [Edit...] button in the configuration dialog<br />
or by double clicking the CAPL node. You can create and modify CAPL programs<br />
with this Browser.<br />
Note: If you prefer to use your own editor to edit CAPL programs, enter it in the<br />
[Environment] section of the CAN.INI file.<br />
Before you start the measurement you must compile all CAPL programs of the configuration.<br />
You can start the CAPL compiler from the CAPL Browser or from the configuration<br />
dialog. To compile all nodes at once, simply choose the main menu item<br />
Configuration│Compile all nodes.<br />
Please note that a CAPL program may react completely differently, depending on the<br />
point at which you place it in the measurement setup. For example, a CAPL program<br />
located in <strong>CANoe</strong>'s measurement setup can indeed generate messages, but it can-<br />
© Vector Informatik GmbH <strong>CANoe</strong>/<strong>DENoe</strong> Manual Version 4.1.1