Reader small image

You're reading from  Getting Started with Simulink

Product typeBook
Published inOct 2013
Reading LevelIntermediate
PublisherPackt
ISBN-139781782171386
Edition1st Edition
Languages
Concepts
Right arrow
Author (1)
Luca Zamboni
Luca Zamboni
author image
Luca Zamboni

Luca Zamboni, born in Ivrea, Italy, obtained his Bachelor's and Master's degrees in Electronics Engineering from the Polytechnic of Turin. He worked as a network systems administrator for some years before becoming a consultant for the automotive industry. Now he works in FIAT's research center.
Read more about Luca Zamboni

Right arrow

Run our first serious simulation


Let's place a Step block in the model, connect it to the Target Goto (whose corresponding From block is connected to the Target speed controller input), and set its Final value to 100 km/h.

Run the simulation and open the Scope block. The speed graph should be like this one:

Quite an overshoot! The vehicle speed reaches almost 150 km/h when the controller closes the throttle. This is due to a too high integral gain, Ki, forcing the vehicle to go a lot faster than intended. Who wants a ride?

Calibrate the PI controller

To calibrate the PI controller constants, Kp and Ki, we'll use this manual method of keeping Ki to zero and finding the Kp value to where the Throttle signal begins to oscillate.

Then we'll halve the found value and save it into Kp and tune Ki in order to reach the target speed with a minimum overshoot.

Calibrating Kp

Prepare the model by setting Ki to zero with this MATLAB command: Ki = 0.

We'll start with an insanely high proportional gain value,...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Getting Started with Simulink
Published in: Oct 2013Publisher: PacktISBN-13: 9781782171386

Author (1)

author image
Luca Zamboni

Luca Zamboni, born in Ivrea, Italy, obtained his Bachelor's and Master's degrees in Electronics Engineering from the Polytechnic of Turin. He worked as a network systems administrator for some years before becoming a consultant for the automotive industry. Now he works in FIAT's research center.
Read more about Luca Zamboni