08.03.2013 Views

Simulink® Modeling for Vehicle Simulator Design - Delphi

Simulink® Modeling for Vehicle Simulator Design - Delphi

Simulink® Modeling for Vehicle Simulator Design - Delphi

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 12. DAQ Concept<br />

In Simulink ® , the above concept has been implemented as<br />

follows:<br />

Figure 12a. Simulink ® Implementation of CCP and<br />

DAQ<br />

The Simulink ® model configures the ECU to send periodic<br />

updates of memory (DAQ) through following CCP<br />

commands.<br />

1. SET_DAQ_PTR<br />

2. WRITE_DAQ<br />

3. START_STOP<br />

Figure 12b. Timestamp Check<br />

Figure 12c. Encoding values to DAQ buffer<br />

Figure 12d. Decoding values front DAQ buffer<br />

At this point ECU starts sending DAQ messages on CAN<br />

bus. The simulator receives these messages.<br />

The DAQ buffer update process is executed much faster<br />

(4ms) than the minimum DAQ period (20ms) and hence<br />

needs to check <strong>for</strong> the new timestamp to avoid duplication of<br />

data in DAQ buffer.<br />

This is achieved by comparing the current timestamp with the<br />

last stored timestamp.

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

Saved successfully!

Ooh no, something went wrong!