CANoe DENoe - KEMT FEI TUKE
CANoe DENoe - KEMT FEI TUKE
CANoe DENoe - KEMT FEI TUKE
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
}<br />
msg.bsSwitch = getValue(this);<br />
// Output message on bus (spontaneous transmission)<br />
output(msg);<br />
The second network node reacts to this message. The CAPL program reads the<br />
value of the bus signal for the switch position and then activates or deactivates the<br />
indicator lamp at its periphery. Please note that the switch value is only acquired via<br />
the signal value on the bus. The value of the environment variable evSwitch is not<br />
known to this CAPL program. That is, the communication between the two nodes occurs<br />
exclusively via the CAN bus:<br />
// Reaction to receipt of the CAN message M1<br />
on message Msg1 {<br />
}<br />
// Read out a bus signal and<br />
// set the environment variable<br />
putValue(evLight, this.bsSwitch);<br />
Now start the measurement in <strong>CANoe</strong>. Whenever you activate the switch on Panel 1<br />
the indicator lamp illuminates. Whenever you turn the switch off, the indicator lamp<br />
goes off. The Trace window shows you both the bus communication (Spontaneous<br />
transmission of message Msg1 when the switch position changes) and the values of<br />
environment variables evSwitch and evLight.<br />
Please note how easily and directly this model of a simple distributed system can be<br />
modeled in CAPL, and how the database assumes central importance.<br />
You will find an introduction to CAPL programming and a detailed presentation of the<br />
programming language in the online help.<br />
The communication between two nodes via the CAN bus by means of spontaneous<br />
emission, i.e. immediately sending out a CAN message in response to state changes,<br />
is not the only capability for modeling the bus behavior of a network node. Cyclic<br />
transmission protocols can also be implemented with CAPL language tools such as<br />
timers.<br />
1.3.13 Tips for Solving Your Own Tasks<br />
This small tour should make you aware of the fundamental control concepts and<br />
most important features of <strong>CANoe</strong>.<br />
Remember that <strong>CANoe</strong>'s measurement setup window and simulation setup represent<br />
the data flow plans for your actual measurement or simulation task. Besides associating<br />
a database and configuring panels, you can configure all other options directly in<br />
these windows: From the data source and bus symbol with network node models in<br />
the simulation setup, to the evaluation blocks on the right side of the measurement<br />
setup window. You can always access the popup menus of all objects in the measurement<br />
and simulation setups by pressing the right mouse button.<br />
© Vector Informatik GmbH <strong>CANoe</strong>/<strong>DENoe</strong> Manual Version 4.1.1<br />
31