Driving Cycle (Simulink Block)

Produces NEDC, Artemis, WLTC class 1, 2, 3a and 3b, and selected EPA driving cycles easily
20.3K Downloads
Updated 30 Jan 2024

View License

This submission contains a Simulink block that can produce several different standard driving cycles used for automotive emissions, range and energy consumption testing. Using this block might save time and effort - I am sharing it to speed up student simulation classes and projects.
At present, the block represents the following cycles: NEDC, Artemis, WLTC class 1, 2, 3a and 3b, UDDS, FTP and HWFET. It could easily be extended to provide more.
If you download this as a zip archive, you will need to unzip this and save the files on your computer. After that, you will need to use the 'install.m' script to make sure all the toolbox directories are on your MATLAB search path. You can then find the block demos in the folder 'drivingcycledemos'.

Cite As

Daniel J. Auger (2024). Driving Cycle (Simulink Block) (https://www.mathworks.com/matlabcentral/fileexchange/46777-driving-cycle-simulink-block), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with R2012b and later releases
Platform Compatibility
Windows macOS Linux
Categories
Find more on Environmental Science in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
2.1.8

Replaced single WLTP Class 3 cycle with WLTC class 1, WLTC class 2, WLTC class 3a and WLTC class 3b cycles.

2.1.7

Fix to bug introduced at previous step.

2.1.6

Modified installation script to produce a warning if a global installation is impossible.

2.1.5

Added a missing image for the documentation.

2.1.4

Further tweaks to documentation.

2.1.3

Documentation update only.

2.1.2

Out of date plot replaced.

2.1.1

Updated image.

2.1

Fixed some display bugs - saving in R2012b format had accidentally removed ports from the blocks and units from scope axes; these have been reinstated.

2.0.1

Documentation update only,

2.0

Substantial tidy up, designed to make installation and use easier. Rudimentary documentation added to block masks.

1.7.1.0

Minor fix to previous upload

1.7.0.0

Small change to hierarchy of zip folders; readme.txt added; short paragraph on installation instructions added.

1.6.0.0

Removed unused legacy files.

1.5.0.0

Deleted some slprj files from zip archive.

1.4.0.0

I have attempted to fix some minor bugs with timing - in particular, a few cycles had an extra second or two at zero velocity. This code is saved for R2016a - the oldest I have on my machine - but if you re-save in earlier formats, it might work!

1.3.0.0

Important bugfix: there was an error in the NEDC, EUDC and ECE R15 cycles - some "intermediate" velocity waypoints had been missed. This has now been corrected.

1.2.0.0

Added experimental versions of EPA cycles: UDDS, FTP and HWFET. Please let me know of any problems.
Removed Subversion files from upload.

1.1.0.0

More informative title.

1.0.0.0