This example shows a diesel engine equipped with a Jake Brake (R) or compression release engine brake. This type of retarder is activated by the driver to slow the vehicle without relying on friction braking mechanisms. Air is released from a number of cylinders at the end of their compression strokes. In this example, the driver can dynamically select to activate braking on zero to eight cylinders. The braking torque for each cylinder is set using a lookup table with engine speed as the input.