This example shows how to use the Drive Cycle Source block to identify drive
cycle faults when you run the conventional vehicle reference application with the
FTP–75 drive cycle.
Open the conventional vehicle reference application project. By default, the
application has a
FTP–75 drive cycle with error tracking
Open the Drive Cycle Source block. On the Fault Tracking tab, select these parameters:
Enable fault tracking
Enable failure tracking
Review the parameters that specify the fault and failure conditions. If the vehicle speed is not within the allowable speed range during the time tolerance, the block sets a fault condition. Accept the default EPA dynamometer driving schedule parameter settings by clicking OK.
This table provides the settings for the EPA standard and the Worldwide Harmonised Light Vehicle Test Procedure (WLTP) laboratory tests.
Speed tolerance above the highest point and below the lowest point of the drive cycle speed trace within the time tolerance.
Time that the block uses to determine the speed tolerance.
|Maximum number of faults|
Maximum number of faults during the drive cycle.
|Maximum single fault time|
Maximum fault duration.
|2.0 s||1.0 s|
|Maximum total fault time|
Maximum accumulated time spent under fault condition.
|Not specified||Not specified|
Connect the vehicle longitudinal velocity signal to the Drive Cycle
VelFdbk input port.
In the Visualization subsystem, connect the longitudinal velocity
<xdot>, to an Outport named
<xdot> signal units. To display
signal units, on the Debug tab, select Information Overlays > Units. The
<xdot> signal units are
<xdot> signal line and
Enable Data Logging.
On the top level of the model, connect the Visualization output to the Drive Cycle Source block input.
Connect the Drive Cycle Source block
port to a Terminator port. Enable data logging.
Save the model and run the simulation.
To inspect the results, use the Data Inspector. In the Simulink® Toolstrip, on the Simulation tab, under Review Results, click Data Inspector.
These results indicate that the Drive Cycle Source block did not detect faults or failures during the drive cycle.
Fault — Vehicle speed,
<xdot>, stayed within the upper and lower bounds
of the allowable speed range.
Fail — Fault conditions did not exceed the maximum
number of faults, maximum single fault time, or maximum total fault
In the Drive Cycle Source block, set the Speed tolerance parameter to a tighter tolerance, for example 1 mph. The block calculates new error bounds for the speed.
Rerun the simulation.
To inspect the results, use the Data Inspector. These results indicate that the Drive Cycle Source block did detect failures and faults during the drive cycle.
Fault — Vehicle speed,
<xdot>, did not stay within the upper and
lower bounds of the allowable speed range.
Fail — Fault conditions exceeded the maximum number
of faults, maximum single fault time, or maximum total fault
 Environmental Protection Agency (EPA). EPA urban dynamometer driving schedule. 40 CFR 86.115-78, July 1, 2001.
 European Union Commission. "Speed trace tolerances". European Union Commission Regulation. 32017R1151, Sec 22.214.171.124, June 1, 2017.