09.01.2013 Views

CANoe DENoe - KEMT FEI TUKE

CANoe DENoe - KEMT FEI TUKE

CANoe DENoe - KEMT FEI TUKE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Bus event:<br />

Keyboard event:<br />

Time event:<br />

ID 100<br />

on message 100 {<br />

write("Message 100");<br />

}<br />

on key 'a' {<br />

write("'a' pressed");<br />

}<br />

on timer Uhr_1 {<br />

write("Clock elapsed");<br />

}<br />

Figure 84: Examples of CAPL Event Procedures<br />

6<br />

A CAPL program consists of two parts:<br />

1. Declare and define global variables<br />

2. Declare and define user-defined functions and event procedures<br />

6.2 CAPL Browser<br />

157<br />

A special Browser is integrated in <strong>CANoe</strong> as a user-friendly means to create, modify,<br />

and compile CAPL programs. Browser in this context is meant to signify a program<br />

for fast and targeted editing of CAPL programs.<br />

6 Besides keyboard events, in <strong>CANoe</strong> you can - with event procedures of the type on envvar also<br />

react to actions that you perform yourself on user-defined control panels.<br />

© Vector Informatik GmbH <strong>CANoe</strong>/<strong>DENoe</strong> Manual Version 4.1.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!