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.

4.3 Replay Block<br />

131<br />

The replay block makes it possible to replay measurement sequences which have<br />

already been recorded. To do this, the user specifies a log file. Messages contained<br />

in it are introduced into the data flow. The most important application is replaying a<br />

recorded data stream onto the CAN bus. To do this, the replay block must be inserted<br />

in the transmit branch.<br />

Instructions on how to use Replay blocks to also play back environment variables,<br />

e.g. to generate test sequences, are given in section 4.3.1.<br />

Replay blocks appear in the data flow plan as small blocks with the label R. Double<br />

clicking these blocks causes a dialog box to appear, in which the replay block can be<br />

configured.<br />

The user can specify whether RX messages or TX messages are to be transmitted or<br />

not. The user can also choose whether messages originating from CAN controller 1<br />

should be transmitted on CAN 1 or CAN 2, or should not be transmitted at all, and<br />

similarly for messages originating from CAN 2.<br />

The file can be transmitted once or cyclically. For cyclic transmission, transmission<br />

resumes with the first message after the end of the file is reached.<br />

There are three possibilities to define the start of transmission of the first message<br />

of the file.<br />

• Immediate<br />

The first message is transmitted at the start of measurement.<br />

• Original<br />

The time of transmission is defined by the time saved with the message in the<br />

file.<br />

• Specified<br />

The user sets the time explicitly in milliseconds since the start of measurement.<br />

In all three cases the time spacing between messages within the file is preserved. If it<br />

is less than one millisecond, transmission is delayed accordingly.<br />

The configuration is lost when a replay block is removed from the measurement<br />

setup (by selecting the command Delete configuration in the popup menu). This<br />

only affects the options set in the dialog box. The replay file itself is not deleted.<br />

4.3.1 Replay of Environment Variables<br />

The replay block provides you with the opportunity to inject both binary and ASCII<br />

files into the simulation setup.<br />

Thus, you can edit ASCII log files with a conventional text editor before you play them<br />

back in the replay block. In particular, you can also generate your own ASCII files<br />

with the sequences of values of certain environment variables to inject them into the<br />

measurement through the replay block.<br />

The replay block reads an ASCII file line-by-line. Enter the number format in the first<br />

line. If the integer values in your file are to be interpreted as decimal values, you<br />

write:<br />

base dec<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!